- Home /
Using stencil buffer for outline effect
Hi everyone
I am trying to make an outline effect using the stencil buffer but I am a bit stuck on how to get there.
The goal is to be able to access the stencil buffer and sample it at different positions. I am currently using a Blit render feature and attaching it to the pipeline asset with a outline material/shader.
I tried reading some questions and answers on this topic but did not find a simple solution to the problem. I am using Unity 2019.3.1f1, Windows 10, URP.
Is there any way for me to access the stencil buffer just like the _CameraDepthTexture in a shader?
Thank you in advance!
Best regards
Comment