Getting Image from Spritebatch
Posted: Sun Feb 18, 2018 7:48 am
So, I'm trying to use Light_World.lua alongside STI and am struggling to get Normals mapped properly. I'm taking tilesets and using them in Tiled and using STI to render them, but after adding Light_World, I found the need to use Normal Maps to properly light tiles. The problem with this is for the Bodies in Light_World it (doesn't explicitly, but based on the callbacks in the code) requires an Image to set the normal map (see documentation for the function here.) I'm taking the tilesets and passing them through the NVIDIA Normals plugin for Photoshop, so if I want to use them in a tiled fashion I have to either
- use Spritebatch/quads
- break the tileset up and use the images individually.