- Home /
Achieve Height Based Fog similar to default one?
Hey guys! Hope you are all well!
This is giving me headaches for the last 3 days: how do I get a height based fog similar to the default Unity distance fog?
As you can see in the picture below, I've activated In Unity's lightning settings the "Fog" tickbox and it's displaying a really good looking distance fog (I called this the default one)
What I am trying now to achieve, is to have the same fog but coming from below, so those big pillars are faded instead of cut at the bottom... I've found this question on another forum (https://gamedev.stackexchange.com/questions/143382/how-can-i-create-a-height-based-volumetric-fog) but unfortunately, I can't make it work like that, maybe I miss something or who knows but this is my result with that plane added:
I've also tried to generate particles (a ton of them) at the bottom to cover the entire floor but I've got two big problems: it's seriously affecting performance and it's looking really pixelated because the particles I generated are pretty big...
Another thing I've tried is to add a custom vertical shader to those pillars to simulate fog on them. This would have worked pretty well if I didn't have the distance fog...
Your answer
Follow this Question
Related Questions
Fog effect on shader 0 Answers
Fade-In/Out shadows for a specific object 0 Answers
Creating a fogless version of a built-in shader 1 Answer
Fog Mode Off Functionality 1 Answer
Represent Land 3D Area End 0 Answers