Eevee: Fix lamps shadows not updating correctly
This was visible if the lamps was out of frustum.
This commit is contained in:
parent
150218e58b
commit
e51dae4af8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue