aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl')
-rw-r--r--linden/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl5
1 files changed, 1 insertions, 4 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl b/linden/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl
index 3413a7f..44468cd 100644
--- a/linden/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl
+++ b/linden/indra/newview/app_settings/shaders/class1/deferred/diffuseV.glsl
@@ -6,16 +6,13 @@
6 */ 6 */
7 7
8varying vec3 vary_normal; 8varying vec3 vary_normal;
9varying vec4 vary_position;
10 9
11void main() 10void main()
12{ 11{
13 //transform vertex 12 //transform vertex
14 gl_Position = ftransform(); 13 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
15 gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; 14 gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
16 15
17 vary_position = gl_ModelViewMatrix * gl_Vertex;
18
19 vary_normal = normalize(gl_NormalMatrix * gl_Normal); 16 vary_normal = normalize(gl_NormalMatrix * gl_Normal);
20 17
21 gl_FrontColor = gl_Color; 18 gl_FrontColor = gl_Color;