Merge pull request #68574 from clayjohn/RD-shadow-time

Properly set TIME shader uniform when rendering shadows
This commit is contained in:
Rémi Verschelde 2022-11-13 15:50:54 +01:00
commit 9e97bc5857
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -1269,6 +1269,8 @@ void RenderForwardMobile::_render_shadow_append(RID p_framebuffer, const PagedAr
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.1;
scene_data.time = time;
scene_data.time_step = time_step;
RenderDataRD render_data;
render_data.scene_data = &scene_data;