orels1 / orels-Unity-Shaders

A collection of practical Unity shaders for your next project
https://shaders.orels.sh
Other
168 stars 13 forks source link

Fix outlines UI mask conflict #28

Closed orels1 closed 11 months ago

orels1 commented 11 months ago

Current stencil implementation conflicts with the Unity UI masking stencils, which makes masked objects always visible on top of opaque Toon materials. This is undesirable.

The fix works in the following way:

Implementation of the SetProp: https://github.com/orels1/orels-Unity-Shaders/issues/29