[Bf-blender-cvs] [1f69ffd35b0] blender2.8: Eevee: Fix Cascaded Shadow Maps glitches
Clément Foucault
noreply at git.blender.org
Mon Jul 16 20:08:21 CEST 2018
Commit: 1f69ffd35b08768e8605496be4389e6bbea39ba7
Author: Clément Foucault
Date: Mon Jul 16 19:54:37 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB1f69ffd35b08768e8605496be4389e6bbea39ba7
Eevee: Fix Cascaded Shadow Maps glitches
There was an issue that caused the cascaded shadow map to appear glitchy
when the lamp was not at the origin.
===================================================================
M source/blender/draw/engines/eevee/eevee_lights.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_lights.c b/source/blender/draw/engines/eevee/eevee_lights.c
index 0f0d9d281c9..431fc9fe561 100644
--- a/source/blender/draw/engines/eevee/eevee_lights.c
+++ b/source/blender/draw/engines/eevee/eevee_lights.c
@@ -891,7 +891,7 @@ static void eevee_shadow_cascade_setup(
frustum_min_bounding_sphere(corners, center, &(sh_data->radius[c]));
/* Project into lightspace */
- mul_mat3_m4_v3(viewmat, center);
+ mul_m4_v3(viewmat, center);
/* Snap projection center to nearest texel to cancel shimmering. */
float shadow_origin[2], shadow_texco[2];
More information about the Bf-blender-cvs
mailing list