diff options
author | Dave Parks <davep@lindenlab.com> | 2011-09-14 16:57:42 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-09-14 16:57:42 -0500 |
commit | 4e006b0e3891d5728a6753059f2c5afc77737482 (patch) | |
tree | 96af37ac252d823f8dc51e20546848ad464e0274 /indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl | |
parent | 758b936deaa0e6ea397c49afa5024315415eeb93 (diff) | |
parent | c0ca2c62fd6b9a90542907ce46bf1fe0ab379e13 (diff) |
merge
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl b/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl index 7c5a4d35b3..553cfff52f 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl @@ -24,6 +24,10 @@ */ +attribute vec4 position; +attribute vec4 diffuse_color; +attribute vec3 normal; +attribute vec2 texcoord0; varying vec3 vary_normal; varying float vary_texture_index; @@ -31,11 +35,11 @@ varying float vary_texture_index; void main() { //transform vertex - gl_Position = gl_ModelViewProjectionMatrix * vec4(gl_Vertex.xyz, 1.0); - 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_texture_index = gl_Vertex.w; - vary_normal = normalize(gl_NormalMatrix * gl_Normal); + vary_texture_index = position.w; + vary_normal = normalize(gl_NormalMatrix * normal); - gl_FrontColor = gl_Color; + gl_FrontColor = diffuse_color; } |