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