Eevee: Fix lamps shadows not updating correctly

This was visible if the lamps was out of frustum.
This commit is contained in:
Clément Foucault 2018-11-11 17:36:00 +01:00
parent 150218e58b
commit e51dae4af8
1 changed files with 1 additions and 1 deletions

View File

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