Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Shadows/SetupShadows.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down