diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-06-28 10:42:14 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-06-28 10:42:14 -0700 |
commit | ea48b194237ce8a8f38bc2f3fd54808c0c32df2a (patch) | |
tree | 3cbb1a89b824efcedda6c60568745a170c4f0ca7 /indra/newview/app_settings/shaders/class3 | |
parent | 39092990b712342a5327f3dbdd63f634d4f0d847 (diff) |
SL-17274: PBR: Remove manual debug
Diffstat (limited to 'indra/newview/app_settings/shaders/class3')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index c83fa3615e..15a3775569 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -54,6 +54,8 @@ #define DEBUG_PBR_IOR 0 // Output: grayscale IOR #define DEBUG_PBR_REFLECT0_BASE 0 // Output: black reflect0 default from ior #define DEBUG_PBR_REFLECT0_MIX 0 // Output: diffuse reflect0 calculated from ior +#define DEBUG_PBR_FE_GGX 0 // Output: FssEssGGX +#define DEBUG_PBR_FE_LAMBERT 0 // Output: FssEssLambert #extension GL_ARB_texture_rectangle : enable #extension GL_ARB_shader_texture_lod : enable @@ -260,8 +262,8 @@ void main() #if HAS_IBL kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor); #endif - vec3 FssEssRadiance = kSpec*vScaleBias.x + vScaleBias.y; - colorSpec += specWeight * specLight * FssEssRadiance; + vec3 FssEssGGX = kSpec*vScaleBias.x + vScaleBias.y; + colorSpec += specWeight * specLight * FssEssGGX; // Reference: getIBLRadianceLambertian vec3 irradiance = getDiffuseLightPBR(n); @@ -362,15 +364,6 @@ void main() #if DEBUG_PBR_FE_LAMBERT color.rgb = FssEssLambert; // diffuse #endif -color.rgb = vec3(dotNV); -color.rgb = vec3(brdfPoint,0.0); -color.rgb = vec3(vScaleBias,0.0); -color.rgb = fresnelR; -color.rgb = kSpec; -color.rgb = reflection; -color.rgb = specLight; -//color.rgb = FssEssGGX; - } else { |