Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Z-order issue with Transparent Vertex Shader

$
0
0
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?

Code (CSharp):
  1.   Shader "Example/Displacement" {
  2.     Properties {...
Z-order issue with Transparent Vertex Shader

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>