Skip to content

Commit 199161f

Browse files
committed
Fix spotlight's shadow with volumetric fog
1 parent 8aa37ca commit 199161f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/rendering/renderer_rd/shaders/environment/volumetric_fog_process.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ void main() {
559559
vec4 v = vec4(view_pos, 1.0);
560560

561561
vec4 splane = (spot_lights.data[light_index].shadow_matrix * v);
562-
splane.z -= spot_lights.data[light_index].shadow_bias / (d * spot_lights.data[light_index].inv_radius);
562+
splane.z -= spot_lights.data[light_index].shadow_bias;
563563
splane /= splane.w;
564564

565565
vec3 pos = vec3(splane.xy * spot_lights.data[light_index].atlas_rect.zw + spot_lights.data[light_index].atlas_rect.xy, splane.z);

0 commit comments

Comments
 (0)