vertxxyz / Vertx.Debugging

Debugging utilities for Unity
MIT License
519 stars 34 forks source link

VertxLine.shader transparency in first pass not working? #40

Open DoomT-AliW opened 1 week ago

DoomT-AliW commented 1 week ago

I'm not sure why, but the first pass that's supposed to make lines transparent when behind other geometries does not work in the line case. But the arc (sphere) does seem to work, I checked the shaders in both they're pretty much the same I'm not sure what the difference is.

image

I'm just doing a return fixed4(1,0,0,0.5); in the frag function of VertxLine.shader

You can see its solid. I tried ZTest Always and moving the passes around, and Queue=Transparent, didn't help

Any help is appreciated. Thanks

Using Unity 2023.2.16f1

vertxxyz commented 1 week ago

Looks fine here in URP: image

Depth testing may fail to work if you have post processing enabled image