Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-11-11 19:36:00 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-11-12 15:50:22 +0300
commite51dae4af852be1d67ff04b0dc2fb448c25dc913 (patch)
tree936697f9ad9377dddf430b224d0e82290599bf5c /source
parent150218e58b24e2e1d61d9f7321d6148b54a54be7 (diff)
Eevee: Fix lamps shadows not updating correctly
This was visible if the lamps was out of frustum.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/eevee/eevee_lights.c2
1 files changed, 1 insertions, 1 deletions
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);
}