From b01ee18eaf4253c7a71644a705d2d4d23a19491b Mon Sep 17 00:00:00 2001 From: SirLynix Date: Sun, 25 Jun 2023 10:02:20 +0200 Subject: [PATCH] Graphics/ForwardFramePipeline: Fix frustum test --- src/Nazara/Graphics/ForwardFramePipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nazara/Graphics/ForwardFramePipeline.cpp b/src/Nazara/Graphics/ForwardFramePipeline.cpp index 8a53f3021..31b0e76cc 100644 --- a/src/Nazara/Graphics/ForwardFramePipeline.cpp +++ b/src/Nazara/Graphics/ForwardFramePipeline.cpp @@ -64,7 +64,7 @@ namespace Nz BoundingVolumef boundingVolume(renderableData.renderable->GetAABB()); boundingVolume.Update(worldInstance->GetWorldMatrix()); - if (!frustum.Contains(boundingVolume)) + if (frustum.Intersect(boundingVolume) == IntersectionSide::Outside) continue; auto& visibleRenderable = m_visibleRenderables.emplace_back();