Hi Guys
Can I create a distance falloff tyope thing where I show 1 texture when the camera is up close, but the further away the camera gets, it blends to another texture?
That’s pretty simple with 3ds Max, but I have no idea how to do that with Shader Graph…
1 Like
You’ll need to get distance from the object. To do this use a distance node with your A input being Camera Position, and your B input being Position (probably in absolute world, though this will depend on what you want). Pass this into the T node of a lerp or inverse lerp, with the textures you’re wanting being in A and B.
At least, I think that should work. I do something very similar except lerping a single texture with 0, in order to make detailed textures disappear at a distance.
2 Likes