summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-29 09:02:50 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-29 09:02:50 -0700
commit7515353d8ea17c433b08f1fdc05cc7a812babff4 (patch)
treedb576728af25f683fba2eb535ad88c832c5faed3 /indra/newview/app_settings/shaders/class3
parent2ec7a9af8212211a15a65e5301e44807e2e4e53d (diff)
SL-17274: Simplify occlusion and make not about future occlusion_strength
Diffstat (limited to 'indra/newview/app_settings/shaders/class3')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index 7eba8689b3..bd6ba4bf15 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -277,9 +277,7 @@ void main()
vec3 kDiffuse = colorDiffuse * (1.0 - FssEssLambert + FmsEms);
colorDiffuse += (FmsEms + kDiffuse) * irradiance;
- float occlusion_strength = 1.0; // TODO: From glb
- float ao = packedORM.r;
- colorDiffuse = mix(colorDiffuse, colorDiffuse * ao, occlusion_strength);
+ colorDiffuse *= packedORM.r; // Occlusion -- NOTE: pbropaque will need occlusion_strength pre-multiplied into spec.r
color.rgb = colorDiffuse + colorEmissive + colorSpec;
@@ -293,7 +291,7 @@ void main()
color.rgb = vec3(metal);
#endif
#if DEBUG_PBR_OCCLUSION
- color.rgb = vec3(ao);
+ color.rgb = vec3(packedORM.r);
#endif
#if DEBUG_PBR_ORM
color.rgb = packedORM;