mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[ue4] Test assets
This commit is contained in:
parent
74850f67a3
commit
ae339ccb51
Binary file not shown.
BIN
spine-ue4/Content/Test/images/head.png
Normal file
BIN
spine-ue4/Content/Test/images/head.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
BIN
spine-ue4/Content/Test/images/hoverboard_board.png
Normal file
BIN
spine-ue4/Content/Test/images/hoverboard_board.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
BIN
spine-ue4/Content/Test/test.spine
Normal file
BIN
spine-ue4/Content/Test/test.spine
Normal file
Binary file not shown.
@ -167,10 +167,10 @@ void USpineSkeletonRendererComponent::UpdateMesh(spSkeleton* Skeleton) {
|
|||||||
UMaterialInstanceDynamic* material = nullptr;
|
UMaterialInstanceDynamic* material = nullptr;
|
||||||
|
|
||||||
switch(slot->data->blendMode) {
|
switch(slot->data->blendMode) {
|
||||||
case SP_BLEND_MODE_NORMAL:
|
/*case SP_BLEND_MODE_NORMAL:
|
||||||
material = pageToNormalBlendMaterial[region->page];
|
material = pageToNormalBlendMaterial[region->page];
|
||||||
break;
|
break;
|
||||||
/*case SP_BLEND_MODE_ADDITIVE:
|
case SP_BLEND_MODE_ADDITIVE:
|
||||||
material = pageToAdditiveBlendMaterial[region->page];
|
material = pageToAdditiveBlendMaterial[region->page];
|
||||||
break;
|
break;
|
||||||
case SP_BLEND_MODE_MULTIPLY:
|
case SP_BLEND_MODE_MULTIPLY:
|
||||||
@ -183,10 +183,10 @@ void USpineSkeletonRendererComponent::UpdateMesh(spSkeleton* Skeleton) {
|
|||||||
material = pageToNormalBlendMaterial[region->page];
|
material = pageToNormalBlendMaterial[region->page];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastMaterial != material) {
|
// if (lastMaterial != material) {
|
||||||
Flush(meshSection, vertices, indices, uvs, colors, lastMaterial);
|
Flush(meshSection, vertices, indices, uvs, colors, lastMaterial);
|
||||||
lastMaterial = material;
|
lastMaterial = material;
|
||||||
}
|
// }
|
||||||
|
|
||||||
spRegionAttachment_computeWorldVertices(regionAttachment, slot->bone, worldVertices.GetData());
|
spRegionAttachment_computeWorldVertices(regionAttachment, slot->bone, worldVertices.GetData());
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user