mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- only ray test sprites on lights that are shadowmapped
This commit is contained in:
parent
25a30f8b7e
commit
fc3cb01029
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void FShadowMap::Update()
|
|||
|
||||
bool FShadowMap::ShadowTest(ADynamicLight *light, const DVector3 &pos)
|
||||
{
|
||||
if (IsEnabled() && mAABBTree)
|
||||
if (light->shadowmapped && light->radius > 0.0 && IsEnabled() && mAABBTree)
|
||||
return mAABBTree->RayTest(light->Pos(), pos) >= 1.0f;
|
||||
else
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue