- Home /
Question by
infiniteWin · Dec 01, 2021 at 05:06 PM ·
renderingstencil
How to use the stencil buffer to only render a layer if it is within a 2D mesh
I am making a 2D, top down game with a field of view cone that stops on walls. How could I only render the parts of gameobjects (such as enemies) that are inside the field of view (a mesh)?
Comment