diff options
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.glsl | 3 |
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 @@ | |||
8 | varying vec3 vary_mat0; | 8 | varying vec3 vary_mat0; |
9 | varying vec3 vary_mat1; | 9 | varying vec3 vary_mat1; |
10 | varying vec3 vary_mat2; | 10 | varying vec3 vary_mat2; |
11 | varying vec4 vary_position; | ||
11 | 12 | ||
12 | void main() | 13 | void 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); |