Is there a way for me to make foliage go transparent when in front of the camera? I used the foliage tool and all the trees are meshes. Thank you!
i think you can achieve this at a material level.
though most probably with a post process material. maybe by writing a custom stencil channel with the playre and then checking if the tree is in front of that.
you could also literally “make your material transparent in front of the camera” but that literally is everything in the camera. you could check if it’s on the center but it could be far away, or behind the player. so i think the post process is the best.
how exactly, i dont know. check this out. is doing it the other way around but is the same technology.
You want to use the camera vector and a distance value of some sort.
Check these.