From cc196393e3e593b1331ed39b0470659e943afffa Mon Sep 17 00:00:00 2001 From: nevarek Date: Fri, 25 Mar 2022 01:40:04 -0700 Subject: [PATCH] Fix shader undefined variable --- .../rendering/renderer_rd/shaders/scene_forward_clustered.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl b/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl index 33b0ee5fae8..4e6e50bc44a 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]