summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred
diff options
context:
space:
mode:
authorTofu Buzzard <no-email>2011-01-22 00:55:14 +0000
committerTofu Buzzard <no-email>2011-01-22 00:55:14 +0000
commit9ca57fdf9832ce6c114e1254d45f828b1312df25 (patch)
treea3010a5e1665f2adeb08ddbe68d171aaa0f194ca /indra/newview/app_settings/shaders/class1/deferred
parentcae8a075c40b734a37e7d4cce4faf5dcdb6ece0c (diff)
HACK to make deferred imposters more-or-less work.
(transplanted from e41d116728dd1e453273047ba7fde9455a1811d4)
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl b/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl
index 7125d845d9..7829e9b72f 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl
@@ -14,7 +14,7 @@ uniform sampler2D specularMap;
void main()
{
vec4 col = texture2D(diffuseMap, gl_TexCoord[0].xy);
- gl_FragData[0] = vec4(col.rgb, col.a <= 0.5 ? 0.0 : 0.005);
+ gl_FragData[0] = vec4(col.rgb, col != vec4(0,0,0,0));
gl_FragData[1] = texture2D(specularMap, gl_TexCoord[0].xy);
- gl_FragData[2] = vec4(texture2D(normalMap, gl_TexCoord[0].xy).xyz, 0.0);
+ gl_FragData[2] = texture2D(normalMap, gl_TexCoord[0].xy);
}