I want to render per pixel lights in my game. Since I want to use several lights it should be easier if I render the normals in a rendertarget and use this buffer to draw the lights.
My level is a tiled tilemap. I don’t know how I should render the normal data in a different target. I could duplicate the tmx map using the normal data instead the diffuse tiles, but seems inefficient. What is the best solution for this situation?