summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-09-02 17:03:14 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-09-02 17:03:14 -0700
commita3dff0db26c5faa1613b29721498baf530f12fed (patch)
treed2f0e82c90460c10df418dc0accabfc103fa88a1 /indra/newview/app_settings/shaders
parent235d2f453532876d2cfc32f8fb200b6d3bdd8f1d (diff)
DRTVWR-559: PBR: Cleanup
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl9
1 files changed, 4 insertions, 5 deletions
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