From e76740d72bd40102db6234147ee987d20bbe8f0a Mon Sep 17 00:00:00 2001 From: sippeangelo Date: Sun, 13 Mar 2016 19:53:34 +0100 Subject: [PATCH] Point lights child of a camera no longer visible to other cameras --- src/Engine/Rendering/RenderSystem.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Engine/Rendering/RenderSystem.cpp b/src/Engine/Rendering/RenderSystem.cpp index 0bc0eb93..578ab44c 100644 --- a/src/Engine/Rendering/RenderSystem.cpp +++ b/src/Engine/Rendering/RenderSystem.cpp @@ -362,6 +362,11 @@ void RenderSystem::fillPointLights(std::list>& jobs, continue; } + EntityWrapper entity(world, pointlightC.EntityID); + if (!isEntityVisible(entity)) { + continue; + } + std::shared_ptr pointLightJob = std::shared_ptr(new PointLightJob(transformC, pointlightC, m_World)); jobs.push_back(pointLightJob); }