diff options
author | clayjohn <claynjohn@gmail.com> | 2022-11-12 10:51:02 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2022-11-12 10:51:02 -0800 |
commit | aaaa4b8d68ed155c3df4a43f7edd4e6f0835daf8 (patch) | |
tree | 627990938758660ed8915fa4201831ea6610e550 /servers/rendering/renderer_rd/forward_clustered | |
parent | 340fb33e543fb5775e36a7d49d605b4e3a33e5d6 (diff) |
Properly set TIME shader uniform when rendering shadows
Diffstat (limited to 'servers/rendering/renderer_rd/forward_clustered')
-rw-r--r-- | servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp index 0e4a223f69..86425512b8 100644 --- a/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp +++ b/servers/rendering/renderer_rd/forward_clustered/render_forward_clustered.cpp @@ -2311,6 +2311,8 @@ void RenderForwardClustered::_render_shadow_append(RID p_framebuffer, const Page scene_data.lod_distance_multiplier = p_lod_distance_multiplier; scene_data.dual_paraboloid_side = p_use_dp_flip ? -1 : 1; scene_data.opaque_prepass_threshold = 0.1f; + scene_data.time = time; + scene_data.time_step = time_step; RenderDataRD render_data; render_data.scene_data = &scene_data; |