Drawing inside of stencil doesn't respect stencil testing
Posted: Wed Oct 24, 2018 3:44 am
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
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