Unity's cutout shaders are basically disabling alpha blending (you get jaggy borders then) and have enabled ZWrite (parameter Write to Depth
in Spine shaders) instead.
When enabling Write to Depth
or using shaders with ZWrite enabled, you have to set Z-Spacing
to a value other than 0 in the SkeletonRenderers
Advanced
section in the Inspector to space the parts at least a bit apart. Otherwise you will get problems with Z-fighting.
However, using cutout (Write to Depth
) shaders currently will not benefit you at all when using any SkeletonRenderer
, since draw order is always back to front
for correct alpha blending. This will then not save you any overdraw, which would require draw order to be front to back
. So until the "invert draw order" feature is implemented for SkeletonRenderers
, we would not expect cutout shaders to gain anything.