diff options
author | Dave Parks <davep@lindenlab.com> | 2011-08-08 15:30:34 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-08-08 15:30:34 -0500 |
commit | b9439ac006ac64179180ec2a47f6bd92468de455 (patch) | |
tree | 0d3da395c91ddadda4ad23b4d331ec001b6a4f84 /indra/newview/app_settings/shaders/class1/deferred/treeV.glsl | |
parent | 5e22062b68d2392d465503b3954cf06001eda608 (diff) | |
parent | 14f6bbadef2c39e58a3b54c0c6212949acf50e45 (diff) |
merge
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/treeV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/treeV.glsl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/treeV.glsl b/indra/newview/app_settings/shaders/class1/deferred/treeV.glsl index a9bef4292d..07e56e84db 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/treeV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/treeV.glsl @@ -6,16 +6,20 @@ */ +attribute vec3 position; +attribute vec3 normal; +attribute vec2 texcoord0; + varying vec3 vary_normal; void main() { //transform vertex - gl_Position = ftransform(); - gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; + gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); + gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(texcoord0,0,1); - vary_normal = normalize(gl_NormalMatrix * gl_Normal); + vary_normal = normalize(gl_NormalMatrix * normal); - gl_FrontColor = gl_Color; + gl_FrontColor = vec4(1,1,1,1); } |