View Full Version : alpha test for texture

06-03-2002, 08:25 AM
I have a texture and I want to reject some portion of pixels by alpha test. But it looks that the alpha test is useless for texture mapping. I set every pixel's alpha value and enable alpha test. but no pixel is rejected when I map the texture.
Is there some way by which I can reject some pixels in a texture?


06-03-2002, 08:46 AM
That's what the ref value in glAlphaFunc is for. The other argument specifies the test.