diff options
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class1/deferred/treeF.glsl')
-rw-r--r-- | linden/indra/newview/app_settings/shaders/class1/deferred/treeF.glsl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class1/deferred/treeF.glsl b/linden/indra/newview/app_settings/shaders/class1/deferred/treeF.glsl index bc2c981..49c65f1 100644 --- a/linden/indra/newview/app_settings/shaders/class1/deferred/treeF.glsl +++ b/linden/indra/newview/app_settings/shaders/class1/deferred/treeF.glsl | |||
@@ -8,13 +8,11 @@ | |||
8 | uniform sampler2D diffuseMap; | 8 | uniform sampler2D diffuseMap; |
9 | 9 | ||
10 | varying vec3 vary_normal; | 10 | varying vec3 vary_normal; |
11 | varying vec4 vary_position; | ||
12 | 11 | ||
13 | void main() | 12 | void main() |
14 | { | 13 | { |
15 | vec4 col = texture2D(diffuseMap, gl_TexCoord[0].xy); | 14 | vec4 col = texture2D(diffuseMap, gl_TexCoord[0].xy); |
16 | gl_FragData[0] = gl_Color*col; | 15 | gl_FragData[0] = gl_Color*col; |
17 | gl_FragData[1] = vec4(0,0,0,0); | 16 | gl_FragData[1] = vec4(0,0,0,0); |
18 | gl_FragData[2] = vec4(normalize(vary_normal), 0.0); | 17 | gl_FragData[2] = vec4(normalize(vary_normal)*0.5+0.5, 0.0); |
19 | gl_FragData[3] = vary_position; | ||
20 | } | 18 | } |