Fix shadows for billboarded Sprite3D's

This commit is contained in:
Erik Johnson 2023-01-31 22:53:54 -05:00 committed by Rémi Verschelde
parent 9272f7b53d
commit eab95698cd
No known key found for this signature in database
GPG key ID: C3336907360768E1
18 changed files with 66 additions and 26 deletions

View file

@ -14,6 +14,9 @@ struct SceneData {
highp mat4 inv_projection_matrix_view[MAX_VIEWS];
highp vec4 eye_offset[MAX_VIEWS];
// Used for billboards to cast correct shadows.
highp mat4 main_cam_inv_view_matrix;
highp vec2 viewport_size;
highp vec2 screen_pixel_size;