Stencil Debugger is a utility for visualizing the stencil buffer in Unity URP. This is useful for debugging purposes when working on rendering effects that make use of the stencil buffer.
-
Open the package manager and select the
Install package from git URL...
option found under the top left dropdown. -
Enter the following link
https://github.com/alexanderameye/stencil-debugger.git
. -
Click
Install
.
After importing the package, you can check compatibility with your project through the Window > Stencil Debugger > Compatibility window.
- Add the Stencil Debug Renderer Feature to your renderer
- Only tested on Unity 6 and Unity 2022, including support for Render Graph.
- Not optimized for performance. Only use it in the editor (it's for debugging) and do not include it in your build.
The draw_digit
method in the StencilDebug
shader for drawing digits was written by Freya Holmér.
@ameye.dev • https://ameye.dev
💛 Feeling appreciative of this free package? Check out Linework 💛