AlphaVertexLitZ

Author: Aras Pranckevicius.

Modification: Derick Wiebe.

Description


Built-in Transparent shaders do not write to depth buffer, hence an object is x-ray like transparent - you can see object's parts which are behind other parts. If you want to fade the object as a whole, this shader can help. See the image on the right.

The shader should work about everywhere (probably even on iPhone). It does render object in two passes though, so it's twice as expensive as regular VertexLit.

Shader
The below is a modification so that you can get more customization. It shouldn't be much more expensive than the above: