From 3222eea9e22cb00ad92ce3bc89ccfd9929227e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Seidenst=C3=BCcker?= Date: Thu, 19 Mar 2026 11:47:36 +0100 Subject: [PATCH] Fix GPU scene submission without stabilize cascades option --- Shadows/SetupShadows.hlsl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Shadows/SetupShadows.hlsl b/Shadows/SetupShadows.hlsl index f63883a..2ee7890 100644 --- a/Shadows/SetupShadows.hlsl +++ b/Shadows/SetupShadows.hlsl @@ -180,11 +180,7 @@ void SetupCascades(in uint3 GroupID : SV_GroupID, in uint3 GroupThreadID : SV_Gr frustumCenter /= 8.0f; // Pick the up vector to use for the light camera - float3 upDir = CameraRight; - - // This needs to be constant it to be stable - if(StabilizeCascades) - upDir = float3(0.0f, 1.0f, 0.0f); + float3 upDir = float3(0.0f, 1.0f, 0.0f); // Create a temporary view matrix for the light float3 lightCameraPos = frustumCenter;