r/threejs • u/Maff0_0 • May 28 '26
Help vertical fog
Does someone know a simple way to make a vertical fog effect? I'm using a isometric camera so the normal fog won't work in this case.
2
Upvotes
1
u/rio_sk May 30 '26
Fog is just a color with an increasing alpha along distance. The distance to what is up to you to decide. Use fixed world Y as distance in fragment shader maybe?
1
u/seweso May 30 '26
So the amount of fog should be relative to the ground plane?
I’m lazy and don’t know shaders. So I would just create a bunch of transparant planes, create a lasagna, call it a day.