diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-07-22 13:17:32 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-07-22 13:18:27 -0300 |
commit | ad8897984183d29b52128d8ad5db6ca7d2ff8278 (patch) | |
tree | a1e04cedf99cdf3422d91b9f769fc29a37dc4581 /drivers/gles3/rasterizer_scene_gles3.cpp | |
parent | 89e1b302b504feb1cea218adcc6fac77c8ae0052 (diff) |
Fix opaque pre pass not casting shadows
Diffstat (limited to 'drivers/gles3/rasterizer_scene_gles3.cpp')
-rw-r--r-- | drivers/gles3/rasterizer_scene_gles3.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index 85b63a6481..a45eb6ff01 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -4086,6 +4086,7 @@ void RasterizerSceneGLES3::render_scene(const Transform &p_cam_transform, const state.ubo_data.z_slope_scale = 0; state.ubo_data.shadow_dual_paraboloid_render_side = 0; state.ubo_data.shadow_dual_paraboloid_render_zfar = 0; + state.ubo_data.opaque_prepass_treshold = 0.99; p_cam_projection.get_viewport_size(state.ubo_data.viewport_size[0], state.ubo_data.viewport_size[1]); @@ -4698,6 +4699,7 @@ void RasterizerSceneGLES3::render_shadow(RID p_light, RID p_shadow_atlas, int p_ state.ubo_data.z_slope_scale = normal_bias; state.ubo_data.shadow_dual_paraboloid_render_side = dp_direction; state.ubo_data.shadow_dual_paraboloid_render_zfar = zfar; + state.ubo_data.opaque_prepass_treshold = 0.1; _setup_environment(NULL, light_projection, light_transform); |