mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Compatibility: Disable environment ambient light when affected by light probes
This commit is contained in:
parent
6a6a1168a5
commit
909f9ca9d4
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue