How can I stop this effect from happening? (2d)

So, I have this problem where when I place sprites in my level, then play in editor, the sprites have this weird layer? effect going on.

Anyone know how to fix this? Thanks in advance.
Also, if you’re wondering why I’m not using a tile map it’s because the assets I’m using don’t want to work well with tile maps and whatnot, so I just use sprites.

Are the sprites all on the same depth axis? Try pushing the one that’s at an angle closer to the camera. Seems light texture z-fighting.


it kind of worked for the one on an angle, but the others still have the problem, even if i bring them out a little.

Can you show how the viewport looks like at an angle? (in editor)
Are you using a perspective camera or orthographic as your main?

Not seeing this shift happening in either case if the distance between the two elements is ok.

yes im using orthographic as my main. lemme pull it up and show you.

here is what it looks like on the side

it has a little bit of a weird outline on the rocks, not sure if that has anything to do with the problem, and it only happens when I move the camera at an angle.

AHA! I found the solution, the material of the sprite had on Unlit translucent so i changed it to lit translucent and it still didn’t work. but then I changed it to masked lit and the problem was solved! thank you for helping out i wouldnt have figured it out by my self :l

1 Like