Unity custom shaders and z-fighting
- by Heisenbug
I've just readed a chapter of Unity iOS Essential by Robert Wiebe.
It shows a solution for handling z-figthing problem occuring while rendering a street on a plane with the same y offset.
Basically it modified Normal-Diffuse shader provided by Unity, specifing the (texture?) offset in -1, -1.
Here's basically what the shader looks like:
Shader…