summaryrefslogtreecommitdiffstats
path: root/modules/lightmapper_rd
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-06-10 19:37:48 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2023-09-21 18:00:54 +0200
commit7831eedf1c24805e6efdd5b7ee659c2095eaa765 (patch)
treeca862f64f24c47f65e75998bb5b5323f579a76f2 /modules/lightmapper_rd
parentfe5b1c8d49313d63fbe91cb7cdf463e10fb86afa (diff)
downloadredot-engine-7831eedf1c24805e6efdd5b7ee659c2095eaa765.tar.gz
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 <techiepriyansh@gmail.com>
Diffstat (limited to 'modules/lightmapper_rd')
-rw-r--r--modules/lightmapper_rd/lm_compute.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lightmapper_rd/lm_compute.glsl b/modules/lightmapper_rd/lm_compute.glsl
index c2557dfed3..4d3f2d46a4 100644
--- a/modules/lightmapper_rd/lm_compute.glsl
+++ b/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