From 9586465672dcedd16bbbaf4e104b76acaf05ebb8 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Thu, 11 Aug 2022 21:54:42 -0700 Subject: SL-17930: PBR: Add SSAO --- indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/app_settings/shaders') diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index 7602fa9712..510f8c8b45 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -291,7 +291,7 @@ void main() #if DEBUG_PBR_IRRADIANCE_RAW vec3 debug_irradiance = irradiance; #endif - irradiance = max(amblit,irradiance); + irradiance = max(amblit,irradiance) * ambocc; #if PBR_USE_IRRADIANCE_HACK irradiance += amblit*0.5*vec3(dot(n, light_dir)); #endif -- cgit v1.2.3