Shader transparency transparency.

I’m having problems with shader transparency.
In my procedurally generated mesh, parts of this mesh is visible through itself, even if alpha value is 1. But this occurs only if camera is on the left side.
See attached image.
The shader I’m using is StandardShader with Fade mode.
To avoid this problem I tried to write my own surface shader and set Zwrite to On. It didn’t help.
Does anybody have any suggestions?

thanks



Ok… I’ve managed to get it working with StandardShader by setting material keyword _ZWrite to 1.

But still… I cant get this working with custom surface shader.