mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[unity] Fixed SkeletonGraphic Cull transparent mesh on additive submesh renderer. Closes #2994.
This commit is contained in:
parent
f099aa0638
commit
bb228f9b64
@ -1088,7 +1088,8 @@ namespace Spine.Unity {
|
||||
canvasRenderer.SetMesh(null);
|
||||
|
||||
SkeletonSubmeshGraphic submeshGraphic = submeshGraphics[i];
|
||||
if (useOriginalTextureAndMaterial && hasBlendModeMaterials) {
|
||||
if (useOriginalTextureAndMaterial &&
|
||||
(hasBlendModeMaterials || submeshInstructionItem.hasPMAAdditiveSlot)) {
|
||||
bool allowCullTransparentMesh = true;
|
||||
BlendMode materialBlendMode = blendModeMaterials.BlendModeForMaterial(usedMaterialItems[i]);
|
||||
if ((materialBlendMode == BlendMode.Normal && submeshInstructionItem.hasPMAAdditiveSlot) ||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "com.esotericsoftware.spine.spine-unity",
|
||||
"displayName": "spine-unity Runtime",
|
||||
"description": "This plugin provides the spine-unity runtime core.",
|
||||
"version": "4.2.111",
|
||||
"version": "4.2.112",
|
||||
"unity": "2018.3",
|
||||
"author": {
|
||||
"name": "Esoteric Software",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user