Tearing in tilemaps with 2d Lit Sprite Shader
I recently upgraded to use the Universal Render Pipeline with 2D lighting. In order to use the lighting, my sprites need to use the 2D Lit material. However, this material doesn't have the "pixel snap" option which seemed to eliminate tearing in the tilemap without the pipeline. Here's an image of what the problem looks like:
I have already tried to add padding with a sprite atlas, but that didn't seem to do anything.
Answer by ThadMuchnok · May 03, 2021 at 10:02 PM
Okay. I think I found a solution. So basically I moved all my sprites from my tilemap spritesheet as individual sprites, THEN i put them into the sprite atlas to add padding. For some reason, when I had the spritesheet in unity as a file with multiple sprites, that caused issues.
Kinda annoying that I need to make individual sprites of tiles rather than just have a spritesheet now, but whatever. At least it works!