0
Fertiggestellt

alpha fade based on distance from camera

Edwon vor 9 Jahren aktualisiert von Freya Holmér (Developer) vor 9 Jahren 3
I know this has been posted about before, but I can't seem to find a good answer (specifically a screenshot of what the shader forge would look like). 

I'd like to just fade the alpha based on distance from the camera. How do I do that?

Antwort

Antwort
Fertiggestellt
Plug in Clamp01( 5 - depth ) into Alpha:
http://www.acegikmo.com/shaderforge/nodes/?search=Depth
oops, I just read the instructions on the front page, I will repost in the forums
the UI of this UserEcho thing is much better than the forums though, I find it difficult to search the Unity forums for specific posts
Antwort
Fertiggestellt
Plug in Clamp01( 5 - depth ) into Alpha:
http://www.acegikmo.com/shaderforge/nodes/?search=Depth