We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0d70d9 commit 0f07847Copy full SHA for 0f07847
com.unity.toonshader/Runtime/HDRP/Shaders/HDRPToonOutline.hlsl
@@ -34,7 +34,7 @@
34
uniform float4 _OutlineMaskColor;
35
uniform float _ComposerMaskMode;
36
uniform int _ClippingMaskMode;
37
-
+ uniform int _ClippingMatteMode;
38
39
//v.2.0.4
40
#ifdef _IS_OUTLINE_CLIPPING_YES
@@ -106,11 +106,18 @@
106
}
107
float4 frag(VertexOutput i) : SV_Target{
108
#ifdef _IS_CLIPPING_MASK
109
- if (_ClippingMaskMode != 0)
110
- {
111
- discard;
112
- }
+ if (_ClippingMaskMode != 0)
+ {
+ discard;
+ }
113
#endif
114
+#ifdef _IS_CLIPPING_MATTE
115
+ if (_ClippingMatteMode != 0)
116
117
+
118
119
120
+#endif // _IS_CLIPPING_MATTE
121
//v.2.0.5
122
if (_ZOverDrawMode > 0.99f)
123
{
0 commit comments