diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-06-28 10:33:39 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-06-28 10:33:39 -0700 |
commit | 00e5a546702c6234d5c8df8b7056bf009b46bf5e (patch) | |
tree | c516c1073e6e80a221ffec2e7a06528e20277b90 /indra/newview | |
parent | 5462ac5d3b20aeefbe750ab10780346c9238bdff (diff) |
SL-17274: PBR: Cleanup: Only calc reflectance if debugging
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index 9b21c7a3cb..b628a0265f 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -239,7 +239,9 @@ void main() vec3 colorDiff = mix( diffuse.rgb, vec3(0) , metal); reflect0 = mix( reflect0 , diffuse.rgb, metal); // reflect at 0 degrees reflect90 = vec3(1); // reflect at 90 degrees +#if DEBUG_PBR_REFLECTANCE float reflectance = max( max( reflect0.r, reflect0.g ), reflect0.b ); +#endif // Common to RadianceGGX and RadianceLambertian float specWeight = 1.0; |