I'm working on a graphical web project using three.js.
I have many circles scattered like this.
https://i.sstatic.net/y4FN8.png
I'm curious if the opacity of objects can be reduced as the distance between the object and camera increases (fade out). Is it also possible to increase the opacity as the distance decreases (fade in)?
I tried looking for answers in the documentation (
https://threejs.org/docs/index.html#manual/en/introduction/Creating-a-scene
), but couldn't find a clear explanation.
Does anyone know how to achieve this effect?
Thank you.