Graphics/ForwardFramePipeline: Fix light frustum culling
This commit is contained in:
parent
c2caec3954
commit
b66c50a5da
|
|
@ -376,7 +376,7 @@ namespace Nz
|
||||||
const BoundingVolumef& boundingVolume = lightData.light->GetBoundingVolume();
|
const BoundingVolumef& boundingVolume = lightData.light->GetBoundingVolume();
|
||||||
|
|
||||||
// TODO: Use more precise tests for point lights (frustum/sphere is cheap)
|
// TODO: Use more precise tests for point lights (frustum/sphere is cheap)
|
||||||
if (renderMask & lightData.renderMask && frustum.Contains(boundingVolume))
|
if (renderMask & lightData.renderMask && frustum.Intersect(boundingVolume) != IntersectionSide::Outside)
|
||||||
{
|
{
|
||||||
m_visibleLights.push_back(lightIndex);
|
m_visibleLights.push_back(lightIndex);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue