summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-09-02 17:02:58 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-09-02 17:02:58 -0700
commit235d2f453532876d2cfc32f8fb200b6d3bdd8f1d (patch)
treed2af47569723ce6cfc7d499fb24c8359f441b36c /indra/newview/app_settings/shaders
parentdfaadd5db0a7e0acda84a94c9177eba9fd7579af (diff)
DRTVWR-559: PBR: Maintain slightly higher quality of normals from normal map
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
index b0becdbb5b..21707b0209 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl
@@ -96,7 +96,7 @@ void main()
#ifdef HAS_NORMAL_MAP
vec4 norm = texture2D(bumpMap, vary_texcoord1.xy);
- norm.xyz = norm.xyz * 2 - 1;
+ norm.xyz = normalize(norm.xyz * 2 - 1);
vec3 tnorm = vec3(dot(norm.xyz,vary_mat0),
dot(norm.xyz,vary_mat1),