- Home /
Question by
Bork Awesome · Aug 14, 2013 at 01:24 AM ·
shadergraphicsstencilunity 4.2
Can I read/write to the Stencil buffer in a pixel shader?
So I have the shiny new Unity 4.2 shader Stencil buffer access working as expected for geometry based reading/writing - but is it possible to access the Stencil buffer via a pixel/fragment shader? I guess the question is can I bind the Stencil buffer to a sampler2D?
Comment
Your answer
Follow this Question
Related Questions
Unity 5 Deferred Stencil Buffer Usage 1 Answer
Use the stencil buffer in multiple passes in a single shader 0 Answers
Shadow Support in Custom Shader 0 Answers
(Shader Graph) Output resolution/ setting resolution of the main preview window 0 Answers
How can I disable masked object shadow with DepthMask shader 1 Answer