added ability to use atlas with premultiplied alpha

This commit is contained in:
andrey.zhirnov
2019-08-27 14:10:18 +03:00
parent 26ab51c366
commit c355291ade
7 changed files with 33 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
{
"atlas" : "coin/coin-pma.atlas",
"premultiplied_alpha" : true,
"skeleton" : "coin/coin-pro.skel",
"skeleton_scale" : 1.0
}

View File

@@ -107,7 +107,6 @@ namespace
.component<actor>(node::create(coin_i, scene_r))
.component<renderer>(renderer()
.materials({spine_mat}))
.component<spine_renderer>(spine_renderer(spine_coin))
.component<spine_player>(spine_player(spine_coin)
.set_animation(0, "animation", true));
@@ -120,7 +119,6 @@ namespace
.component<actor>(node::create(raptor_gobj_, scene_r))
.component<renderer>(renderer()
.materials({spine_mat}))
.component<spine_renderer>(spine_renderer(spine_raptor))
.component<spine_player>(spine_player(spine_raptor)
.set_animation(0, "walk", true));