aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class1/deferred/bumpV.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class1/deferred/bumpV.glsl')
-rw-r--r--linden/indra/newview/app_settings/shaders/class1/deferred/bumpV.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class1/deferred/bumpV.glsl b/linden/indra/newview/app_settings/shaders/class1/deferred/bumpV.glsl
index 9589912..ba18092 100644
--- a/linden/indra/newview/app_settings/shaders/class1/deferred/bumpV.glsl
+++ b/linden/indra/newview/app_settings/shaders/class1/deferred/bumpV.glsl
@@ -8,6 +8,7 @@
8varying vec3 vary_mat0; 8varying vec3 vary_mat0;
9varying vec3 vary_mat1; 9varying vec3 vary_mat1;
10varying vec3 vary_mat2; 10varying vec3 vary_mat2;
11varying vec4 vary_position;
11 12
12void main() 13void main()
13{ 14{
@@ -15,6 +16,8 @@ void main()
15 gl_Position = ftransform(); 16 gl_Position = ftransform();
16 gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0; 17 gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
17 18
19 vary_position = gl_ModelViewMatrix * gl_Vertex;
20
18 vec3 n = normalize(gl_NormalMatrix * gl_Normal); 21 vec3 n = normalize(gl_NormalMatrix * gl_Normal);
19 vec3 b = normalize(gl_NormalMatrix * gl_MultiTexCoord2.xyz); 22 vec3 b = normalize(gl_NormalMatrix * gl_MultiTexCoord2.xyz);
20 vec3 t = cross(b, n); 23 vec3 t = cross(b, n);