From accc5bbd8d9f9cfaa5e6e21d762542256fa2cf39 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 5 Oct 2008 23:51:04 -0700 Subject: Trying out using alpha test to emulate color keying. The original D3D code used SetColorKey to remove the transparent bits from certain textures, like the HUD alien tail. As there's no straightforward way to do this in OpenGL without using fragment programs, enable alpha test to reject fragments with zero alpha. This might break a few things that have alpha set to zero when translucency is off -- I fixed the few cases that I found. --- src/kshape.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kshape.c') diff --git a/src/kshape.c b/src/kshape.c index 312d8ca..7107c0b 100644 --- a/src/kshape.c +++ b/src/kshape.c @@ -1229,7 +1229,7 @@ static void PredatorSeeAliensVisionPolygon_Construct(POLYHEADER *polyPtr) } else { - alpha = 0; + alpha = 255; RenderPolygon.TranslucencyMode = TRANSLUCENCY_OFF; } -- cgit v1.3