View Full Version : write stencil buffer

06-04-2002, 12:00 PM
I want to write the stencil buffer in a atactic shape. I can't figure out the shape before hand. the only way by which I can figure out the shape is the alpha test. Can I write the stencil buffer by the alpha value but not the polygon that I draw?

Decimal Dave
06-04-2002, 04:39 PM
I'm no expert on the stencil buffer, but I think in your case you could use the alpha test to filter what fragments are drawn to the stencil buffer. Anything which fails the alpha test should not affect the stencil when that test is activated.

06-04-2002, 08:05 PM
sounds like u dont need stencil at all, perhaps blending using src_alpha or dst_alpha is what u want