Page 1 of 1

Drawing inside of stencil doesn't respect stencil testing

Posted: Wed Oct 24, 2018 3:44 am
by wraith321
Hey,

So I found out about using graphics.setColorMask() to enable drawing inside of the stencil function.
Problem with this is, that only the values written to the stencil buffer respect the current graphics.setStencilTest() settings, so the pixels will always be drawn, ignoring the current stencil buffer state.
Because of this I am currently separating the draw calls for the stencil and the actual pixels.

Is this a bug, simply expected behavior, or am I doing something wrong?

Thanks

Re: Drawing inside of stencil doesn't respect stencil testing

Posted: Sun Oct 28, 2018 11:30 am
by pgimeno
I don't understand. Could you give some sample code that reproduces the problem you're having?