Skip to content

Commit 6bb3c8c

Browse files
committed
Fix overly dim Light3D nodes when using directional lightmap baking
1 parent 5da6dea commit 6bb3c8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/lightmapper_rd/lm_compute.glsl

+2
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,9 @@ void trace_direct_light(vec3 p_position, vec3 p_normal, uint p_light_index, bool
467467
}
468468
}
469469

470+
#ifndef USE_SH_LIGHTMAPS
470471
attenuation *= max(0.0, dot(p_normal, r_light_dir));
472+
#endif
471473
if (attenuation <= 0.0001) {
472474
return;
473475
}

0 commit comments

Comments
 (0)