Stencils + Alpha ?
Posted: Tue Aug 14, 2012 4:39 pm
So, I'm making a game that depends very much on stencils. I have 2 layers on the map that are drawn using the same stencil (one with the stencil normally, and the other with the stencil inverted).
The thing is, I want to make the transition borders between these two layers to be smoother, as if one is fading out into the other. The stencils are circle-shaped, and I need to make its alpha fade out gradually as it approaches the borders of the circle.
Is there any way to make this effect using stencils or other functions in Love2D?
The thing is, I want to make the transition borders between these two layers to be smoother, as if one is fading out into the other. The stencils are circle-shaped, and I need to make its alpha fade out gradually as it approaches the borders of the circle.
Is there any way to make this effect using stencils or other functions in Love2D?