From 09eaa211fea6e359041c9e7b09816d665ac84473 Mon Sep 17 00:00:00 2001 From: datacrystals Date: Mon, 13 Jun 2022 21:41:50 +0000 Subject: [PATCH] Implement Spot Light Shadows (#217) --- .../Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_DepthMaps.cpp | 1 + .../ERS_CLASS_VisualRenderer/ERS_CLASS_VisualRenderer.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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 b93267c97e..3269dafdf6 100644 --- a/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_DepthMaps.cpp +++ b/Source/Core/Renderer/ERS_CLASS_VisualRenderer/ERS_CLASS_DepthMaps.cpp @@ -383,6 +383,7 @@ void ERS_CLASS_DepthMaps::UpdateDepthMaps(ERS_STRUCT_Shader* DepthShader) { // Check If Light Has DepthMap if (!Light->DepthMap.Initialized) { Light->DepthMap = GenerateDepthMap(); + std::cout<DepthMap.DepthMapTextureIndex<SetInt((UniformName + std::string(".DepthMapIndex")).c_str(), ActiveScene->SpotLights[i]->DepthMap.DepthMapTextureIndex); ActiveShader->SetMat4((UniformName + std::string(".LightSpaceMatrix")).c_str(), ActiveScene->SpotLights[i]->LightSpaceMatrix); - std::cout<SpotLights[i]->DepthMap.DepthMapTextureIndex<