fix #30; SoftMask is not clipped by RectMask2D

pull/87/head
mob-sakai 2019-01-25 16:35:52 +09:00
parent acccdc7d7b
commit 2eb9053410
1 changed files with 0 additions and 2 deletions

View File

@ -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);