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;
|
||||
|
||||
switch(slot->data->blendMode) {
|
||||
case SP_BLEND_MODE_NORMAL:
|
||||
/*case SP_BLEND_MODE_NORMAL:
|
||||
material = pageToNormalBlendMaterial[region->page];
|
||||
break;
|
||||
/*case SP_BLEND_MODE_ADDITIVE:
|
||||
case SP_BLEND_MODE_ADDITIVE:
|
||||
material = pageToAdditiveBlendMaterial[region->page];
|
||||
break;
|
||||
case SP_BLEND_MODE_MULTIPLY:
|
||||
@ -183,10 +183,10 @@ void USpineSkeletonRendererComponent::UpdateMesh(spSkeleton* Skeleton) {
|
||||
material = pageToNormalBlendMaterial[region->page];
|
||||
}
|
||||
|
||||
if (lastMaterial != material) {
|
||||
// if (lastMaterial != material) {
|
||||
Flush(meshSection, vertices, indices, uvs, colors, lastMaterial);
|
||||
lastMaterial = material;
|
||||
}
|
||||
// }
|
||||
|
||||
spRegionAttachment_computeWorldVertices(regionAttachment, slot->bone, worldVertices.GetData());
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user