[ue4] Test assets

This commit is contained in:
badlogic 2016-12-14 13:50:09 +01:00
parent 74850f67a3
commit ae339ccb51
5 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

View File

@ -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());