Skip to content

Commit af7bb15

Browse files
authored
Fix shadow shader update oversight (#7135)
1 parent 937091e commit af7bb15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/def_files/data/effects/shadows.sdr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ float getShadowValue(sampler2DArray shadow_map, float depth, float shadowDepth,
110110
float dist_threshold = (cascade_start_dist[cascade+1] - cascade_start_dist[cascade])*0.2;
111111
if(cascade_start_dist[cascade+1] - dist_threshold > depth)
112112
return samplePoissonPCF(shadow_map, shadowDepth, cascade, shadowUV, use_simple_pass);
113-
return mix(samplePoissonPCF(shadow_map, shadowDepth, cascade, shadowUV, use_simple_pass), samplePoissonPCF(shadow_map, shadowDepth, cascade+1, shadowUV),
113+
return mix(samplePoissonPCF(shadow_map, shadowDepth, cascade, shadowUV, use_simple_pass), samplePoissonPCF(shadow_map, shadowDepth, cascade+1, shadowUV, use_simple_pass),
114114
smoothstep(cascade_start_dist[cascade+1] - dist_threshold, cascade_start_dist[cascade+1], depth));
115115
}
116116

0 commit comments

Comments
 (0)