Drawing inside of stencil doesn't respect stencil testing

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
wraith321
Prole
Posts: 1
Joined: Wed Oct 24, 2018 3:36 am

Drawing inside of stencil doesn't respect stencil testing

Post 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
User avatar
pgimeno
Party member
Posts: 3550
Joined: Sun Oct 18, 2015 2:58 pm

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

Post by pgimeno »

I don't understand. Could you give some sample code that reproduces the problem you're having?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 221 guests