Pipeline update - Normal maps and rim lighting masks for sprites

๐Ÿ“† Created on April 10, 2021. ๐Ÿ”– asepriteunity3d

I updated my aseprite import code to filter out "special" layers and import them differently. Currently it supports @normal, @mask and @emission layers and imports the data there as normal maps, light masks and emission maps respectively. These special layers are imported as secondary textures for the sprite sheet, so they work with the built-in Unity 2D lighting effects:


And here are the layers within aseprite, there's a gif below of me toggling each layer on/off. image



Adding an AI Player


Weird inverted image data in Unity