Z fighting problem (Simple Case)

Hi !

I don’t know if my problem is easy to fix or if its not possible to fix.

I have 2 planes that are at the same Y, but i would like that one of them be always on top.
By alway on top i mean that i want the texture to be rendered over the first one.

I googled that and i found that maybe Shader - Pass {Offset} would help me. (I am probably wrong).

I tried to add that line in my shader
So in the Subshader category…

Pass {
	Offset -1, -1
}

It seems to work because there is no Z fighting anymore, but my texture is now black…
And it does not render the texture(bitmap) anymore.

I am sorry, i am noob with shaders.
Do you have any ideas ?

Or is there any shader that let you choose the depth level ?
Thanks !
Regard.

I have found it !
I hope it can help somebody stuck in the same situation

Pass {
    		Offset -1, -1
    		SetTexture[_MainTex]
    	}

Offset and SetTexture need to be in the SAME Pass.
You can then control the depth with the Offset level, excellent.

Bye!