Transparent shader disappearing issue

Hi,

I’ve a strange problem with transparent shaders. If my main camera is close to the small mesh (on top of bigger mesh) it will be rendered, but once I move my camera few pixels back, mesh will disappear.

Works fine with non transparent shaders, like Diffuse etc.
Camera near clip is 0.3 and far clip is 1000, but this is not a problem as I tried many different values.

You can better see problem from screenshots:

Camera close, you can see bluish mesh: ImageShack - grvisible.png
Camera slightly back, mesh is gone: ImageShack - grnotvisible.png

Tried different transparent shaders, same issue. Some of shaders behaved slightly differently, instead of totally disappearing it was not transparent until I get close to mesh.

What I’m trying to achieve is to highlight tiles on ground mesh.

Thanks in advance for any help!

Looks like I found what was causing this strange behaviour.

For some reason I had my ground mesh using Transparent/VertexLit shader as well, so both meshes with transparent shader and one on top of the other does something weird.

I didn’t even need ground mesh to be transparent, once I’ve changed its shader to VertexLit (non transparent), my problem is solved.