diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-25 11:52:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 11:52:34 +0100 |
commit | 1d4b1b6732c816f98e6c19319d9c1439c05db39d (patch) | |
tree | beb9e1873d7e0e50ccee909d77115f000a00de0a | |
parent | aa200d1eef2ac0f8564b453283bc311d3a571d69 (diff) | |
parent | cc196393e3e593b1331ed39b0470659e943afffa (diff) |
Merge pull request #59509 from nevarek/fix-shader-undefined-variable
-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] |