From d6b7626446e965d3cf4567f5cd787511c9bbe4f3 Mon Sep 17 00:00:00 2001 From: CatChow0 Date: Thu, 22 May 2025 17:28:29 +0200 Subject: [PATCH] Minor - Start Shadow Map - V10.5.0 --- .../.idea/workspace.xml | 163 +--- enginecustom/enginecustom.vcxproj | 89 ++ enginecustom/imgui.ini | 4 +- enginecustom/shader-error.txt | Bin 57 -> 129 bytes enginecustom/src/hlsl/depth.ps | 10 + enginecustom/src/hlsl/depth.vs | 25 + enginecustom/src/hlsl/sunlight.ps | 38 +- enginecustom/src/hlsl/sunlight.vs | 24 +- .../src/inc/shader/depth_shader_class.h | 37 + .../src/inc/shader/shader_manager_class.h | 6 +- .../src/inc/shader/sunlight_shader_class.h | 28 +- .../src/inc/system/application_class.h | 27 +- enginecustom/src/inc/system/shadow_map.h | 33 + .../src/src/shader/depth_shader_class.cpp | 224 +++++ .../src/src/shader/shader_manager_class.cpp | 61 +- .../src/src/shader/sunlight_shader_class.cpp | 812 ++++++++++-------- .../src/src/system/application_class.cpp | 150 +++- enginecustom/src/src/system/shadow_map.cpp | 105 +++ 18 files changed, 1305 insertions(+), 531 deletions(-) create mode 100644 enginecustom/src/hlsl/depth.ps create mode 100644 enginecustom/src/hlsl/depth.vs create mode 100644 enginecustom/src/inc/shader/depth_shader_class.h create mode 100644 enginecustom/src/inc/system/shadow_map.h create mode 100644 enginecustom/src/src/shader/depth_shader_class.cpp create mode 100644 enginecustom/src/src/system/shadow_map.cpp diff --git a/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml b/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml index 690b46b..d43725b 100644 --- a/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml +++ b/.idea/.idea.KhaoticEngineReborn/.idea/workspace.xml @@ -5,97 +5,24 @@ - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + {} @@ -253,6 +126,9 @@ "associatedIndex": 6 } + + +