#Transparency

1 messages · Page 1 of 1 (latest)

wraith sundial
#

Transparent Shader does not let me see through it idk why :/

compact cradle
#

If you're expecting the black parts to be transparent, the alpha result you are passing in has a value of 1/white there so shows that side. Maybe remove the One Minus node?

wraith sundial
wraith sundial
#

okey if i switch the actual color it gets shown inside the scene but the alpha cant be touched like it is here in this example its on 18 but it is not transparent

#

nvm it can never bee transparent because in the shader this area is not invisible or alpha 0 so only the right side were the shader gets build can ever be alpha 0 (transparent)

#

like its done here

compact cradle
#

You aren't using the alpha component of the Color property, so makes sense nothing changes when adjusting that

#

If you want it to affect it, could do Color (property) -> Split (A output) -> Multiply with what you're inputting into the Alpha

wraith sundial
#

were does it get put in between?

#

i dont really understand

compact cradle
#

After the Clamp node

wraith sundial
#

so there i need to reference the color property again i have used for the albedo?

compact cradle
#

Yea

wraith sundial
#

still does not let me see through it

#

also it is the flipped side i want to effect

#

i mean now its nice to know the overall transparency does not work correctly in this shader

compact cradle
#

I suspect the "Transparent Depth Prepass" is the cause for not being able to see other transparent ground through this. But it seems to be enabled and greyed out on the material - maybe you need to adjust it in HDRP settings somewhere?

wraith sundial
#

still not working 😦

compact cradle
#

https://discussions.unity.com/t/why-cant-i-disable-the-depth-pre-pass/850951/4
Apparently HDRP forces transparent depth prepass if the material needs decal support. So unticking the "Recieve Decals" option should then let you disable the depth prepass
Though might mess with sorting too. You may want to switch to an opaque material when fully revealed, or look into using dithering with alpha clipping instead of actual transparency.

#

Once you can see through might be easier to debug any issues with the graph

subtle jetty
wraith sundial
#

yeaaah you right now the opaque mat can be seen behind it

wraith sundial
#

so its only having problems showing itself behind it

#

so maybe its the renderque

#

but how can i effect that in the shader graph. Because all this objects need this shader. I really cant give each one a different material

tall kernel
#

Should it actually be transparent? It looks like you could probably get away with alpha clip and then everything would be dandy

wraith sundial
#

Alpha Clip does indeed work with opaque but somehow i lose my blend shader emission if i do this

#

lul

#

now even on transparent can i see through it

#

if alpha clipping is unchecked

#

it was the shader that i messed up

#

thanks for your help!! ❤️