Переглянути джерело

Merge pull request #106149 from BlueCube3310/gles-ambient-capture

Compatibility: Disable environment ambient light when affected by light probes
Thaddeus Crews 4 місяців тому
батько
коміт
388a649e24
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      drivers/gles3/shaders/scene.glsl

+ 2 - 2
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);