Merge pull request #59509 from nevarek/fix-shader-undefined-variable

This commit is contained in:
Rémi Verschelde 2022-03-25 11:52:34 +01:00 committed by GitHub
commit 1d4b1b6732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,7 +453,7 @@ layout(location = 9) in flat uint instance_index_interp;
//defines to keep compatibility with vertex //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 #ifdef USE_MULTIVIEW
#define projection_matrix scene_data.projection_matrix_view[ViewIndex] #define projection_matrix scene_data.projection_matrix_view[ViewIndex]
#define inv_projection_matrix scene_data.inv_projection_matrix_view[ViewIndex] #define inv_projection_matrix scene_data.inv_projection_matrix_view[ViewIndex]