My game have a tiled 2d map. This is a scene screenshot:
I found when I move the camera vertically, there are strange white lines randomly appeared between randomly tiles, See:
I don't know why....
PS: This is a pixel style 2d game, so my texture's filter mode is "Point".
PS: I uploaded this test scene at https://dl.dropbox.com/u/53858613/Web/Web.html , Hold the left mouse button , camera will move downwards, then you'll see white lines randomly.
You'll notice long, weirdly colored lines appearing vertically (as I've seen it) on your tilemap. According to what I've been able to tell this comes from your camera not snapping to a whole number pixel count, which seems to be the issue in my case.
The Tilemap component is a system which stores and handles Tile Assets for creating 2D levels. It transfers the required information from the Tiles placed on it to other related components such as the Tilemap Renderer and the Tilemap Collider 2D.
Change your materials shader to something more suited for 2D. Such as sprite/default.
I made a quick test project and changing the shader from "diffuse" to "sprite/default" solved the issue.
What fixed it for me is setting the compression for my 2D spritesheet to point instead of bi-linear
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With