mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] SkeletonGraphic now supports Unity RectMask2D. Closes #1283.
This commit is contained in:
parent
540c61d619
commit
b706b41be6
@ -111,7 +111,7 @@ Shader "Spine/SkeletonGraphic Tint Black"
|
||||
texColor.rgb *= texColor.a;
|
||||
#endif
|
||||
|
||||
texColor.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect);
|
||||
texColor *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect);
|
||||
|
||||
#ifdef UNITY_UI_ALPHACLIP
|
||||
clip (texColor.a - 0.001);
|
||||
|
||||
@ -109,7 +109,7 @@ Shader "Spine/SkeletonGraphic"
|
||||
|
||||
half4 color = (texColor + _TextureSampleAdd) * IN.color;
|
||||
|
||||
color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect);
|
||||
color *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect);
|
||||
|
||||
#ifdef UNITY_UI_ALPHACLIP
|
||||
clip (color.a - 0.001);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user