summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/effects/drawQuadV.glsl
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-08-08 15:39:02 -0500
committerDave Parks <davep@lindenlab.com>2011-08-08 15:39:02 -0500
commitf076bdf609ec1fe114a7d0222a318483c97c7a26 (patch)
tree93dbd2a949d60daaf6aaa025ca7cf036cf90a929 /indra/newview/app_settings/shaders/class2/effects/drawQuadV.glsl
parentf302e119627090c22325df59c40e1762402a08c6 (diff)
parentb9439ac006ac64179180ec2a47f6bd92468de455 (diff)
merge
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/effects/drawQuadV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class2/effects/drawQuadV.glsl10
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class2/effects/drawQuadV.glsl b/indra/newview/app_settings/shaders/class2/effects/drawQuadV.glsl
index 9c52b8dd5d..7dd2ead200 100644
--- a/indra/newview/app_settings/shaders/class2/effects/drawQuadV.glsl
+++ b/indra/newview/app_settings/shaders/class2/effects/drawQuadV.glsl
@@ -6,11 +6,15 @@
*/
+attribute vec3 position;
+attribute vec2 texcoord0;
+attribute vec2 texcoord1;
+
void main(void)
{
//transform vertex
- gl_Position = ftransform();
- gl_TexCoord[0] = gl_MultiTexCoord0;
- gl_TexCoord[1] = gl_MultiTexCoord1;
+ gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0);
+ gl_TexCoord[0] = vec4(texcoord0,0,1);
+ gl_TexCoord[1] = vec4(texcoord1,0,1);
}