I'm trying to find something for 2.8 but struggling.

I want to use the z height (depth on render layer?) to reduce the intensity of mist (composite layer) exponentially as height increases.

Currently, the mist render layer setup only affects intensity based on distance from camera.

The following tut shows how it could be done but it doesn't seem to have the same effect in 2.8.

shader setup mist pass

how to make a z-depth AND height pass?

Can anyone help with the node setup please?

  • 1
    $\begingroup$ related: blender.stackexchange.com/questions/43600/… $\endgroup$
    – user1853
    Commented Jan 9, 2020 at 14:15
  • $\begingroup$ Thanks - interesting approach. $\endgroup$ Commented Jan 9, 2020 at 14:20
  • $\begingroup$ The linked answer on your post is easy to do in 2.8. The only difference is that layers have changed to collections and view layers. But the same principles apply. Read: blender.stackexchange.com/questions/96463/… $\endgroup$
    – user1853
    Commented Jan 9, 2020 at 14:21
  • $\begingroup$ Ahhh - OK - it's a little confusing so let me work through it - thanks. $\endgroup$ Commented Jan 9, 2020 at 14:45
  • $\begingroup$ you need a Normalize node before the viewer node! $\endgroup$
    – Martin
    Commented Jun 16, 2022 at 18:43


You must log in to answer this question.

Browse other questions tagged .