Skip to content

Commit 909f9ca

Browse files
committed
Compatibility: Disable environment ambient light when affected by light probes
1 parent 6a6a116 commit 909f9ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gles3/shaders/scene.glsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,7 @@ void main() {
20302030
specular_light = mix(specular_light, custom_radiance.rgb, custom_radiance.a);
20312031
#endif // CUSTOM_RADIANCE_USED
20322032

2033-
#ifndef USE_LIGHTMAP
2033+
#if !defined(USE_LIGHTMAP) && !defined(USE_LIGHTMAP_CAPTURE)
20342034
//lightmap overrides everything
20352035
if (scene_data.use_ambient_light) {
20362036
ambient_light = scene_data.ambient_light_color_energy.rgb;
@@ -2050,7 +2050,7 @@ void main() {
20502050
}
20512051
#endif // DISABLE_REFLECTION_PROBE
20522052
}
2053-
#endif // USE_LIGHTMAP
2053+
#endif // !USE_LIGHTMAP && !USE_LIGHTMAP_CAPTURE
20542054

20552055
#if defined(CUSTOM_IRRADIANCE_USED)
20562056
ambient_light = mix(ambient_light, custom_irradiance.rgb, custom_irradiance.a);

0 commit comments

Comments
 (0)