From 909f9ca9d43d99897f2d9f2141ceebd8f1e185c2 Mon Sep 17 00:00:00 2001 From: BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> Date: Wed, 7 May 2025 18:08:54 +0200 Subject: [PATCH] Compatibility: Disable environment ambient light when affected by light probes --- drivers/gles3/shaders/scene.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index 53cd6988e4..31d70b9d0f 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -2030,7 +2030,7 @@ void main() { specular_light = mix(specular_light, custom_radiance.rgb, custom_radiance.a); #endif // CUSTOM_RADIANCE_USED -#ifndef USE_LIGHTMAP +#if !defined(USE_LIGHTMAP) && !defined(USE_LIGHTMAP_CAPTURE) //lightmap overrides everything if (scene_data.use_ambient_light) { ambient_light = scene_data.ambient_light_color_energy.rgb; @@ -2050,7 +2050,7 @@ void main() { } #endif // DISABLE_REFLECTION_PROBE } -#endif // USE_LIGHTMAP +#endif // !USE_LIGHTMAP && !USE_LIGHTMAP_CAPTURE #if defined(CUSTOM_IRRADIANCE_USED) ambient_light = mix(ambient_light, custom_irradiance.rgb, custom_irradiance.a);