diff options
author | nevarek <smithnathan339@gmail.com> | 2022-03-25 01:40:04 -0700 |
---|---|---|
committer | nevarek <smithnathan339@gmail.com> | 2022-03-25 01:40:04 -0700 |
commit | cc196393e3e593b1331ed39b0470659e943afffa (patch) | |
tree | 3da1c26d261df7ba2cca53d165877190299243c9 /servers/rendering/renderer_rd/shaders | |
parent | 3990152f6b7fcbac39ed68f0cc0fd36131bc9e2f (diff) |
Fix shader undefined variable
Diffstat (limited to 'servers/rendering/renderer_rd/shaders')
-rw-r--r-- | servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl b/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl index 33b0ee5fae..4e6e50bc44 100644 --- a/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl +++ b/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl @@ -453,7 +453,7 @@ layout(location = 9) in flat uint instance_index_interp; //defines to keep compatibility with vertex -#define model_matrix instances.data[instance_index].transform +#define model_matrix instances.data[draw_call.instance_index].transform #ifdef USE_MULTIVIEW #define projection_matrix scene_data.projection_matrix_view[ViewIndex] #define inv_projection_matrix scene_data.inv_projection_matrix_view[ViewIndex] |