Browse Source

Fix directional LightmapGI being too dark with static lights

The brightness now matches dynamic lights (indirect light baked only)
when Directional is enabled.

Co-authored-by: Priyansh Rathi <[email protected]>
Hugo Locurcio 3 years ago
parent
commit
7831eedf1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/lightmapper_rd/lm_compute.glsl

+ 1 - 1
modules/lightmapper_rd/lm_compute.glsl

@@ -415,7 +415,7 @@ void main() {
 			);
 
 			for (uint j = 0; j < 4; j++) {
-				sh_accum[j].rgb += light * c[j] * (1.0 / 3.0);
+				sh_accum[j].rgb += light * c[j] * 8.0;
 			}
 #endif