Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DoomT-AliW opened this issue Nov 12, 2024 · 1 comment
Open

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

DoomT-AliW opened this issue Nov 12, 2024 · 1 comment

Comments

@DoomT-AliW
Copy link

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
Copy link
Owner

Looks fine here in URP:
image

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants