Z fighting

There is neat trick with materials. :wink:

Just utilize this node a bit.

I’ve got a city build themed game.

In my level I my “ground” and “roads” and as both sits on Z-0 it cause flickering (I get why this is).
I’m wondering if there is a “best way” to fix this.

I could increase the Z of the either item.
Cons; that means that any other assets that I spawn in runtime needs to be become aware of their spawned Z so it’s not stuck on the same Z

I don’t know other ways :slight_smile:

Thanks in advance!