summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-10-20 14:39:28 -0500
committerDave Parks <davep@lindenlab.com>2010-10-20 14:39:28 -0500
commit1ca35bb30fa18e2d39aa06247b4478740d82d798 (patch)
tree2624f75a2ecd6408e116d1c9f17d19d4fefe12cc /indra/newview/app_settings
parent7be4856fde3a2b9e2caed4edf6bf65b55aea78b3 (diff)
parent187716a4ee9019b0133de865d9ede3c3abc3cc5b (diff)
merge
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/attachmentShadowV.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/attachmentShadowV.glsl b/indra/newview/app_settings/shaders/class1/deferred/attachmentShadowV.glsl
index 1626e21cd8..5ae41cb730 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/attachmentShadowV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/attachmentShadowV.glsl
@@ -1,5 +1,5 @@
/**
- * @file diffuseSkinnedV.glsl
+ * @file attachmentShadowV.glsl
*
* Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
* $License$
@@ -21,5 +21,7 @@ void main()
gl_FrontColor = gl_Color;
- gl_Position = gl_ProjectionMatrix*vec4(pos, 1.0);
+ vec4 p = gl_ProjectionMatrix * vec4(pos, 1.0);
+ p.z = max(p.z, -p.w+0.01);
+ gl_Position = p;
}