Hi, I’m trying to create distance fog for my game and I followed a guide, but it causes problems with both translucent and alpha-composite materials. It makes them invisible!
Otherwise it works for opaque ones like it should (Opaque objects disappear when very far away from the camera but ones closest to the camera are clear). What can I do to fix this??
Scene without distance fog (gems are translucent):
https://i.imgur.com/L79DtFN.png
The distance fog postproccess material:
https://i.imgur.com/kOOpyxv.png
Gems get cut off with the distance fog:
https://i.imgur.com/2pavK8A.png
I tried the exponential height fog, but makes it so that even the objects closest to the camera still are foggy looking(have thin layer of fog).
Distance fog is supposed to make objects in the distance become unseen and objects closest to the camera very clear and have no fog.
This is how distance fog is supposed to work:
https://upload.wikimedia.org/wikipedia/commons/c/c5/CGfog.jpg
https://kayin.moe/wp-content/uploads/2016/06/img_575342a5dcdca.png