aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class1/deferred/treeF.glsl
diff options
context:
space:
mode:
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.glsl4
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 @@
8uniform sampler2D diffuseMap; 8uniform sampler2D diffuseMap;
9 9
10varying vec3 vary_normal; 10varying vec3 vary_normal;
11varying vec4 vary_position;
12 11
13void main() 12void 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}