How to exclude some actor from the Fog ?
In my current scene I'm using an Exponential Fog which works very well. However I would like to avoid its effects over my SkySphere. Is there a way to exclude an object or even a shader to be affected by the fog ? (Without having the use a translucent material of course.)
I hope that is what you are looking for
answered Dec 25 '17 at 11:53 PM
There's no way to do this right now for opaque materials, since the fog is applied in a deferred pass and doesn't know anything about the material receiving it. It is possible in an inefficient way for Atmosphere, there's a material node that will compute Atmosphere contribution to a pixel, you can then subtract it out of the final color. This is inefficient because it computes the expensive Atmosphere calculation twice.
Note that in real life, height fog is applied to the sky that you see the same way as the distant mountains. Often skies that you render out of another program will have fog already built in, this is where the problem comes from as it ends up getting double fogged.
answered Jul 08 '14 at 02:09 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here