diff options
author | Jonathan Goodman <geenz@geenzo.com> | 2012-05-10 16:28:07 -0400 |
---|---|---|
committer | Jonathan Goodman <geenz@geenzo.com> | 2012-05-10 16:28:07 -0400 |
commit | 2716e38d42ca7c65a7017b465b499f752268d9e1 (patch) | |
tree | 662c95a55168bebca12bdd9ea08aeb5fc542e4ad /indra/newview/app_settings/shaders/class1/deferred/diffuseAlphaMaskF.glsl | |
parent | d6569db3520f7e0ce2d93febb6f4e26b48c08a3d (diff) |
Encode viewspace Z normal to preserve negative Z (fixes all light shifting errors, and shiny environment map errors due to lack of negative Z)
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/diffuseAlphaMaskF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/diffuseAlphaMaskF.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/diffuseAlphaMaskF.glsl b/indra/newview/app_settings/shaders/class1/deferred/diffuseAlphaMaskF.glsl index e9989a4e48..04c3afaa97 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/diffuseAlphaMaskF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/diffuseAlphaMaskF.glsl @@ -47,6 +47,6 @@ void main() gl_FragData[0] = vec4(col.rgb, 0.0); gl_FragData[1] = vec4(0,0,0,0); // spec vec3 nvn = normalize(vary_normal); - gl_FragData[2] = vec4(nvn.xy * 0.5 + 0.5, nvn.z, 0.0); + gl_FragData[2] = vec4(nvn.xyz * 0.5 + 0.5, 0.0); } |