I am trying to figure out what approach would be the best for this scenario:
I have a group of heroes in the middle of eg. a forest. The trees closest to the camera (those between the group and the camera) are blocking the clear sight for the player and I would like to make those trees more or less transparent.
But - as they are single sided polys, like a tree consists of a “pole” that has branches. How would you “fade them out” ?
IF shader is the only solution, what shader or where do I code that?
Eg. I have a defuse with alpha transparent leafs and if I also have to make it half transparent sometimes, doesnt that give some new problems… argh!..
The simple question is:
How do I hide/fadeout the in scene objects that obstructs my view. Its not the calculation of which to hide, but HOW to hide them nicely so they dont “blink” when I move on with the heroes.