[SOLVED] Z-fighting

I need draw one geometry on top of another geometry. How to solve the problem with z-fightnig? I see, that “forwardlight” pass does not have this problem. I try to repeat this approach and use technique

<technique vs="Unlit" ps="Unlit" psdefines="DIFFMAP"> <pass name="alpha" depthwrite="false" depthtest="equal" /> </technique>

but it does not works

Use a small depth bias in the material.

The equal test works in the forward lights pass because it’s about drawing the same geometries again, but when you’re drawing a different geometry, subtle differences in math could still cause Z-fighting.

Thank you, bias works perfect!