From a3dff0db26c5faa1613b29721498baf530f12fed Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Fri, 2 Sep 2022 17:03:14 -0700 Subject: DRTVWR-559: PBR: Cleanup --- .../newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'indra/newview/app_settings/shaders') diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl index 21707b0209..7a13abc7e8 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl @@ -98,9 +98,9 @@ void main() vec4 norm = texture2D(bumpMap, vary_texcoord1.xy); norm.xyz = normalize(norm.xyz * 2 - 1); - vec3 tnorm = vec3(dot(norm.xyz,vary_mat0), - dot(norm.xyz,vary_mat1), - dot(norm.xyz,vary_mat2)); + vec3 tnorm = vec3(dot(norm.xyz,vary_mat0), + dot(norm.xyz,vary_mat1), + dot(norm.xyz,vary_mat2)); #else vec4 norm = vec4(0,0,0,1.0); // vec3 tnorm = vary_normal; @@ -108,8 +108,7 @@ void main() #endif tnorm = normalize(tnorm.xyz); - - norm.xyz = normalize(tnorm.xyz); + norm.xyz = tnorm.xyz; // RGB = Occlusion, Roughness, Metal // default values, see LLViewerTexture::sDefaultPBRORMImagep -- cgit v1.2.3