summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-08-08 15:29:23 -0500
committerDave Parks <davep@lindenlab.com>2011-08-08 15:29:23 -0500
commit14f6bbadef2c39e58a3b54c0c6212949acf50e45 (patch)
tree295c3bd149b343cd334885133f101963219d7f39 /indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl
parent333608e889827342c79d3eee2006b1a704985740 (diff)
SH-2242 Work in progress migrating to glVertexAttrib everywhere
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl b/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl
index 8401208e28..18c8e394c6 100644
--- a/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl
+++ b/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl
@@ -5,12 +5,14 @@
* $/LicenseInfo$
*/
-
+attribute vec3 position;
+attribute vec4 diffuse_color;
+attribute vec2 texcoord0;
void main()
{
- gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
- gl_FrontColor = gl_Color;
- gl_TexCoord[0] = gl_MultiTexCoord0;
+ gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0);
+ gl_FrontColor = diffuse_color;
+ gl_TexCoord[0] = vec4(texcoord0,0,1);
}