diff options
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class1/deferred/bumpF.glsl')
-rw-r--r-- | linden/indra/newview/app_settings/shaders/class1/deferred/bumpF.glsl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class1/deferred/bumpF.glsl b/linden/indra/newview/app_settings/shaders/class1/deferred/bumpF.glsl index a8712bc..1c29dae 100644 --- a/linden/indra/newview/app_settings/shaders/class1/deferred/bumpF.glsl +++ b/linden/indra/newview/app_settings/shaders/class1/deferred/bumpF.glsl | |||
@@ -11,7 +11,6 @@ uniform sampler2D bumpMap; | |||
11 | varying vec3 vary_mat0; | 11 | varying vec3 vary_mat0; |
12 | varying vec3 vary_mat1; | 12 | varying vec3 vary_mat1; |
13 | varying vec3 vary_mat2; | 13 | varying vec3 vary_mat2; |
14 | varying vec4 vary_position; | ||
15 | 14 | ||
16 | void main() | 15 | void main() |
17 | { | 16 | { |
@@ -22,8 +21,7 @@ void main() | |||
22 | dot(norm,vary_mat1), | 21 | dot(norm,vary_mat1), |
23 | dot(norm,vary_mat2)); | 22 | dot(norm,vary_mat2)); |
24 | 23 | ||
25 | gl_FragData[0].rgb = gl_Color.rgb*col; | 24 | gl_FragData[0] = vec4(gl_Color.rgb*col, 0.0); |
26 | gl_FragData[1] = vec4(col*(gl_Color.a*1.5), gl_Color.a); | 25 | gl_FragData[1] = vec4(col*gl_Color.a, gl_Color.a); |
27 | gl_FragData[2] = vec4(normalize(tnorm), 0.0); | 26 | gl_FragData[2] = vec4(normalize(tnorm)*0.5+0.5, 0.0); |
28 | gl_FragData[3] = vary_position; | ||
29 | } | 27 | } |