Category "texture-atlas"

How do you combine/stitch images of different sizes to one image with a size that is a power of 2?

Some context I am working on a voxel game (like minecraft). I can not use a prebuilt texture atlas as I need to allow players to add custom blocks to the game.

Change alpha mask when texture changes on same SKSpriteNode

I have two functions that help me show different animations on my SKSpriteNode, but I need the alpha mask of this Sprite to change whenever the texture changes