I’d like to be able to use dynamic lighting on my 2d character. I have normal maps for every frame of his animation, but I can’t figure out how to combine the normal maps together with the spritesheet to make a flipbook. I know materials can do it, but can sprites? I’d also like to be able to add bump and reflective maps as well.
You need to set your sprite’s material to DefaultLitSpriteMaterial. This material has a parameter for Normal Maps but you need to “activate” it before you can use it.
See the space for a texture below “Additional Textures” ? This is where you will be adding your normal map. Click on the + button to add another element. When you see Slot #0, select your normal map and set it.
You must do this for every sprite individually, as this UI option does NOT appear in the Flipbook Editor.
Glad I could help!
If you want, you can copy and edit the DefaultLitSpriteMaterial and add masks for the other PBR parameter inputs too.
Having a metallic sword sprite could be pretty cool.
If you see yourself doing this a lot, you might want to make a copy of DefaultLitSpriteMaterial and make the normal map a texture parameter instead of an additional texture that way you can skip the few clicks to enable the normal map if you’re going to be doing this for hundreds of sprites.