Holmes
2003.04.06, 11:39 PM
I'm working off the nehe basecode:
What do I need to do so that the alpha channel in my targa texture's will draw as transparent? Right now they're completely ignored. I've been at this for days and just can't figure out whats wrong. Shouldn't I just have to call:
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_NOTEQUAL, 0.0);
What else is it I need to do?
I put an NSLog in the texture loading function so I can verify that it is recognizing it as having an alpha channel and storing it as RGBA.
If need be, I'll post the source on the net.
What do I need to do so that the alpha channel in my targa texture's will draw as transparent? Right now they're completely ignored. I've been at this for days and just can't figure out whats wrong. Shouldn't I just have to call:
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_NOTEQUAL, 0.0);
What else is it I need to do?
I put an NSLog in the texture loading function so I can verify that it is recognizing it as having an alpha channel and storing it as RGBA.
If need be, I'll post the source on the net.