mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +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)
|
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;
|
return mAABBTree->RayTest(light->Pos(), pos) >= 1.0f;
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue