PDA

View Full Version : Masking almost working fine, just a little bug



Mike-S
09-24-2002, 02:48 AM
Hi, I have implemented masking in my program, based on NeHe's masking tutorial. I use (GL_DST_COLOR, GL_ZERO) for the first pass using a black/white bmp mask and (GL_ONE, GL_ONE) for the second, the real texture. But the white from the mask is showed as transparent black, here is the pic:
http://www.alu.ua.es/m/mop1/img/masking.jpg

I have tried disabling fog and other artifacts, with no result.

Thanks.

Mike-S
09-24-2002, 08:59 AM
Just solved. Was a stupid problem in the rendering cue order.