aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class1/deferred/avatarF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class1/deferred/avatarF.glsl')
-rw-r--r--linden/indra/newview/app_settings/shaders/class1/deferred/avatarF.glsl13
1 files changed, 4 insertions, 9 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class1/deferred/avatarF.glsl b/linden/indra/newview/app_settings/shaders/class1/deferred/avatarF.glsl
index 4b9cca2..58aa5a9 100644
--- a/linden/indra/newview/app_settings/shaders/class1/deferred/avatarF.glsl
+++ b/linden/indra/newview/app_settings/shaders/class1/deferred/avatarF.glsl
@@ -8,18 +8,13 @@
8uniform sampler2D diffuseMap; 8uniform sampler2D diffuseMap;
9 9
10varying vec3 vary_normal; 10varying vec3 vary_normal;
11varying vec4 vary_position;
11 12
12void main() 13void main()
13{ 14{
14 vec4 diff = gl_Color*texture2D(diffuseMap, gl_TexCoord[0].xy); 15 gl_FragData[0] = gl_Color * texture2D(diffuseMap, gl_TexCoord[0].xy);
15 // Viewer 2.0 uses 0.2 but for KL's viewer if i want a complete avatar need this to be 0.0 for now.
16 if (diff.a < 0.0)
17 {
18 discard;
19 }
20
21 gl_FragData[0] = vec4(diff.rgb, 1.0);
22 gl_FragData[1] = vec4(0,0,0,0); 16 gl_FragData[1] = vec4(0,0,0,0);
23 gl_FragData[2] = vec4(normalize(vary_normal)*0.5+0.5, 0.0); 17 gl_FragData[2] = vec4(normalize(vary_normal), 0.0);
18 gl_FragData[3] = vary_position;
24} 19}
25 20