fix #30; SoftMask is not clipped by RectMask2D
parent
acccdc7d7b
commit
2eb9053410
|
@ -102,9 +102,7 @@ Shader "UI/Default-SoftMask"
|
|||
{
|
||||
half4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color;
|
||||
|
||||
#ifdef UNITY_UI_CLIP_RECT
|
||||
color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect);
|
||||
#endif
|
||||
|
||||
#ifdef UNITY_UI_ALPHACLIP
|
||||
clip (color.a - 0.001);
|
||||
|
|
Loading…
Reference in New Issue