- Home /
White lines between adjacent/overlapping sprites and from tiled sprites?
I'm having white lines appear in my game from tiled sprites. The white lines sometimes even appear between two separate sprites that are adjacent to each other. In the image I have one sprite renderer that stretches around the perimeter of the level and causes these white lines to stretch across it. I have disabled anti-aliasing (both from the quality settings and camera settings), I have checked the sprite material has pixel snap ticked. The problem disappears when HDR is turned ON in graphics quality. Or, when pixel snap is ticked OFF, but when the camera moves the white lines appear and disappear randomly. Also, at the very end of the sprite (to the right), where it intersects with the border of the level at the perimeter, you'll also see a vertical white line. When HDR is ON or pixel snap is OFF, they appear randomly when the camera moves instead of being there all the time. They appear vertically and horizontally depending on where the camera is positioned. I am also using a sprite atlas but the problem persists when I remove the sprite atlas. I have wandered around the internet to look for an answer, unfortunately, I have not found a fix and I don't want to use pixel perfect camera or manually control the position of my camera to match each pixel. If anyone has suggestions, please let me know! Thank you!
EDIT: Building the game gets rid of the horizontal lines stretched across the level, but the thin white lines at the perimeter appear and disappear randomly.