Stencil Buffer Masking Flexibility Question
Posted: Wed Oct 24, 2018 6:08 pm
I'm new to Amplify Shader Editor and still figuring out a lot of the settings in the Output Node.
I have a shader that I've found I want to use on images with and without a mask. I am applying my shader to a UI Image via a material. I've had success getting it to be visible with the mask, or hidden by it, by toggling Comparison in the Stencil Buffer between Less or Equal and Greater or Equal. Unfortunately, when it is visible on an image with a mask, it is invisible on an image without a mask. And visa versa.
What I want to do, and have not figured out yet, is have the material/shader applied to my image be visible without a mask, while at the same time visible within a mask and responding to the masking behavior.
Here are my current Node settings for reference. Any insight you can provide would be greatly appreciated. Thank you for your time.
I have a shader that I've found I want to use on images with and without a mask. I am applying my shader to a UI Image via a material. I've had success getting it to be visible with the mask, or hidden by it, by toggling Comparison in the Stencil Buffer between Less or Equal and Greater or Equal. Unfortunately, when it is visible on an image with a mask, it is invisible on an image without a mask. And visa versa.
What I want to do, and have not figured out yet, is have the material/shader applied to my image be visible without a mask, while at the same time visible within a mask and responding to the masking behavior.
Here are my current Node settings for reference. Any insight you can provide would be greatly appreciated. Thank you for your time.