diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-11 20:39:43 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-11 20:39:43 +0100 |
commit | b14e52a5a3f29ad250b4e36ba8bcccf494ff43bc (patch) | |
tree | e741c266aef6472180de5bd0d4fc69f53108c50b /indra | |
parent | 514186eee31c4bc44e7bc021bb9c526e4138cb07 (diff) |
add an accidentally-dropped normalize from the bf541483d907 / normpacking-rejig
(transplanted from 9e23eb15550830b5efe1012c8169339931ec5f32)
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl index e1715eb4f9..b494b521ca 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl @@ -55,6 +55,7 @@ void main() vec3 norm = texture2DRect(normalMap, frag.xy).xyz; norm = vec3((norm.xy-0.5)*2.0,norm.z); // unpack norm + norm = normalize(norm); vec4 spec = texture2DRect(specularRect, frag.xy); vec3 diff = texture2DRect(diffuseRect, frag.xy).rgb; float noise = texture2D(noiseMap, frag.xy/128.0).b; |