summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-10-05 19:18:58 -0500
committerDave Parks <davep@lindenlab.com>2011-10-05 19:18:58 -0500
commit1f4bc180502d1a4448e18715596a61ae9f406c4f (patch)
tree009f70b9f3d27ce28571d0f056a169497bb74b9f /indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl
parent194bedbb96a6dcfe90d5b731aeca8658c83f2306 (diff)
parent2b51a7a60942b1efc99cee43489ef2f92fa7a188 (diff)
merge
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl b/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl
index fc3ff45614..8b46e81f90 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/shadowV.glsl
@@ -22,15 +22,17 @@
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
-
+uniform mat4 modelview_projection_matrix;
-varying vec4 post_pos;
+ATTRIBUTE vec3 position;
+
+VARYING vec4 post_pos;
void main()
{
//transform vertex
- vec4 pos = gl_ModelViewProjectionMatrix*gl_Vertex;
+ vec4 pos = modelview_projection_matrix*vec4(position.xyz, 1.0);
post_pos = pos;