I have a bit of a problem with Z-ordering on my shader here.
If i have the shader alone with a blank background i see it clearly, however if something comes behind it, it will be put ontop of the object with the shader on.
if i take the #pragma and remove the alpha part the Z-ordering issue is fixed but offcause sadly also disables transparency.
Can anyone point out what i am missing to get the Z-ordering back in place?
Z-order issue with Transparent Vertex Shader
If i have the shader alone with a blank background i see it clearly, however if something comes behind it, it will be put ontop of the object with the shader on.
if i take the #pragma and remove the alpha part the Z-ordering issue is fixed but offcause sadly also disables transparency.
Can anyone point out what i am missing to get the Z-ordering back in place?
Code (CSharp):
- Properties {...