From 39246fd5e4ac11f468ce54476e4793f629de97f4 Mon Sep 17 00:00:00 2001 From: datacrystals Date: Tue, 21 Jun 2022 09:11:08 +0000 Subject: [PATCH] Implement Point Light Shadows (#215) --- .../Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_DepthMaps.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_DepthMaps.cpp b/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_DepthMaps.cpp index e3daaaba40..c617f7ed6b 100644 --- a/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_DepthMaps.cpp +++ b/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_DepthMaps.cpp @@ -500,6 +500,7 @@ void ERS_CLASS_DepthMaps::UpdateDepthMaps(ERS_STRUCT_Shader* DepthShader, ERS_S // Handle Point Lights glBindFramebuffer(GL_FRAMEBUFFER, CubemapFBO_); glClear(GL_DEPTH_BUFFER_BIT); + for (unsigned int i = 0; i < ActiveScene->PointLights.size(); i++) { // Extract Struct