- Home /
Unity2D Tilemap Add Sprites with Normal Maps to tilePallet
Hello,
So I am in the works of making assets for a 2D demo and I discovered that you can use normal maps to make 2D sprites react to lights in Unity. This is really cool and would add a lot of depth and atmosphere to the demo. I also am using the 2017.2 version of Unity and really like the TileMap system they have implemented and I was wondering how can I add a sprite with a normal map attached to the tilemap?
I don't think having a gameObject for each sprite is a good idea and the tilemap solves that but it will not accept prefabs. The only way I know how to add a normal map to a sprite is to attach a material to it with the normal map on it.
Has anyone tried this before?
Answer by Puddinglord · Oct 27, 2017 at 09:45 PM
So upon further investigation you cannot add a prefab to the tile pallet. You can however apply the normal map to the tiles painted with the pallet in the scene view. Then the normal map will apply to that tile and all other instances of that tile in the tile map.
Answer by ToyBrain101 · Nov 30, 2017 at 05:14 AM
I added a material to the sprite renderer that has the normal map on it. works great!
@Puddinglord , I made a new $$anonymous$$aterial...it has a sprite lit shader on it. I made a normal map of my tilemap textures. I put this $$anonymous$$aterial in the Tilemap renderer. tilemap is now lit.
Your answer
Follow this Question
Related Questions
What are these lines called on normal map? 0 Answers
How do I get Normal Maps to align with Tile Maps? 0 Answers
Need help with size of Tiles! 2 Answers
2D Light + Normal Maps with Sprite Mask? 3 Answers
Adding normal map to Sprite shader 1 Answer