[Bf-blender-cvs] [e51dae4af85] blender2.8: Eevee: Fix lamps shadows not updating correctly

Clément Foucault noreply at git.blender.org
Mon Nov 12 13:50:30 CET 2018


Commit: e51dae4af852be1d67ff04b0dc2fb448c25dc913
Author: Clément Foucault
Date:   Sun Nov 11 17:36:00 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBe51dae4af852be1d67ff04b0dc2fb448c25dc913

Eevee: Fix lamps shadows not updating correctly

This was visible if the lamps was out of frustum.

===================================================================

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 d5badab1254..83fd1bf68cc 100644
--- a/source/blender/draw/engines/eevee/eevee_lights.c
+++ b/source/blender/draw/engines/eevee/eevee_lights.c
@@ -1194,7 +1194,7 @@ void EEVEE_draw_shadows(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
 		Lamp *la = (Lamp *)ob->data;
 		BoundSphere bsphere = {
 			.center = {ob->obmat[3][0], ob->obmat[3][1], ob->obmat[3][2]},
-			.radius = la->dist
+			.radius = la->clipend
 		};
 		cube_visible[i] = DRW_culling_sphere_test(&bsphere);
 	}



More information about the Bf-blender-cvs mailing list