1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

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
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;