My shader code is:
Shader "Custom/Transparent" {
Properties{
_Color("Main Color", Color) = (1,1,1,1)
_MainTex("Base (RGB) Trans (A)", 2D) = "white" {}
}
SubShader{
Tags {"RenderType" = "Transparent" "Queue" = "Transparent" }
Blend SrcAlpha OneMinusSrcAlpha
ZTest Always
Pass {
ColorMask 0
}
UsePass "Transparent/Diffuse/FORWARD"
}
Fallback "Transparent/VertexLit"
}
and I only can get this result:
What I really want to achieve is this:
So the hand is transparent but it does't show itself just the object behind it. What can I do?
EDIT 1: I tried to change "ZWrite" to "On" and restart Unity but it had the same result, the hands are Oculus Hands. The problem in particular is that I have "ZTest Always", when I remove it, it already works but I additionally need that the ghostly hand can be seen between solid objects so I cannot remove that part