Merge pull request #59305 from nevarek/fragment-shader-inv-projection

This commit is contained in:
Rémi Verschelde 2022-03-19 17:39:32 +01:00 committed by GitHub
commit c251ea01db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -456,8 +456,10 @@ layout(location = 9) in flat uint instance_index_interp;
#define model_matrix instances.data[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]
#else
#define projection_matrix scene_data.projection_matrix
#define inv_projection_matrix scene_data.inv_projection_matrix
#endif
#if defined(ENABLE_SSS) && defined(ENABLE_TRANSMITTANCE)