From 20a7dd5b50b28e2f78d8cca433ef863a462cd327 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Fri, 1 Jul 2022 14:55:30 -0700 Subject: SL-17682: PBR: Fix irradiance to use amblit --- indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 1 + 1 file changed, 1 insertion(+) (limited to 'indra') diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index f89c910dcf..d9a3310a07 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -287,6 +287,7 @@ void main() vec3 specLight = vec3(0); float gloss = 1.0 - perceptualRough; sampleReflectionProbes(irradiance, specLight, legacyenv, pos.xyz, norm.xyz, gloss, 0.0); + irradiance = max(amblit,irradiance); #if HAS_IBL kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor); #endif -- cgit v1.2.3