summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/avatar/pickAvatarV.glsl
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-09-13 16:11:22 -0500
committerDave Parks <davep@lindenlab.com>2011-09-13 16:11:22 -0500
commitc0ca2c62fd6b9a90542907ce46bf1fe0ab379e13 (patch)
tree69bed5c3a72357e183384917b5495c2990e1ac13 /indra/newview/app_settings/shaders/class1/avatar/pickAvatarV.glsl
parent19371a9abed3198f9f6083c3b2483e65778e944a (diff)
parent38c19f4e55c0f6a104de87dfb57313a6c529b4d6 (diff)
merge
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/avatar/pickAvatarV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/avatar/pickAvatarV.glsl16
1 files changed, 9 insertions, 7 deletions
diff --git a/indra/newview/app_settings/shaders/class1/avatar/pickAvatarV.glsl b/indra/newview/app_settings/shaders/class1/avatar/pickAvatarV.glsl
index e25d84a594..f07e5c124b 100644
--- a/indra/newview/app_settings/shaders/class1/avatar/pickAvatarV.glsl
+++ b/indra/newview/app_settings/shaders/class1/avatar/pickAvatarV.glsl
@@ -23,21 +23,23 @@
* $/LicenseInfo$
*/
-
+attribute vec3 position;
+attribute vec4 diffuse_color;
+attribute vec2 texcoord0;
mat4 getSkinnedTransform();
void main()
{
vec4 pos;
-
+ vec4 pos_in = vec4(position, 1.0);
mat4 trans = getSkinnedTransform();
- pos.x = dot(trans[0], gl_Vertex);
- pos.y = dot(trans[1], gl_Vertex);
- pos.z = dot(trans[2], gl_Vertex);
+ pos.x = dot(trans[0], pos_in);
+ pos.y = dot(trans[1], pos_in);
+ pos.z = dot(trans[2], pos_in);
pos.w = 1.0;
- gl_FrontColor = gl_Color;
- gl_TexCoord[0] = gl_MultiTexCoord0;
+ gl_FrontColor = diffuse_color;
+ gl_TexCoord[0] = vec4(texcoord0,0,1);
gl_Position = gl_ProjectionMatrix * pos;
}