summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/shadowCubeV.glsl
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2013-04-15 14:13:15 -0500
committerDave Parks <davep@lindenlab.com>2013-04-15 14:13:15 -0500
commit7ed3d61ded42a557b698eb6cb497a3f6e3c667e7 (patch)
tree484ea75883f2c8953f94c3b67acf89fcc2196bd1 /indra/newview/app_settings/shaders/class1/deferred/shadowCubeV.glsl
parentd8f2ecd5b3f0cb8475fa1d092cc7a315ca1e8ca9 (diff)
parent359b6cad5b8ae2a88927d53eaa12b58a126e0d1c (diff)
Automated merge with https://bitbucket.org/lindenlab/viewer-development-materials
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/shadowCubeV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/shadowCubeV.glsl10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/shadowCubeV.glsl b/indra/newview/app_settings/shaders/class1/deferred/shadowCubeV.glsl
index 6195e2f1ec..ef153dfc5b 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/shadowCubeV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/shadowCubeV.glsl
@@ -27,7 +27,9 @@ uniform mat4 modelview_projection_matrix;
ATTRIBUTE vec3 position;
+#if !DEPTH_CLAMP
VARYING vec4 post_pos;
+#endif
uniform vec3 box_center;
uniform vec3 box_size;
@@ -37,8 +39,12 @@ void main()
//transform vertex
vec3 p = position*box_size+box_center;
vec4 pos = modelview_projection_matrix*vec4(p.xyz, 1.0);
-
+
+#if !DEPTH_CLAMP
post_pos = pos;
-
+
gl_Position = vec4(pos.x, pos.y, pos.w*0.5, pos.w);
+#else
+ gl_Position = pos;
+#endif
}