Search Unity

How do i make a simple fog effect like this one

Discussion in 'General Graphics' started by meebou, Mar 30, 2017.

  1. meebou

    meebou

    Joined:
    Mar 6, 2017
    Posts:
    46
    Hello,
    how do i achieve that kind of fog effect so the objects are fading out when they come nearer to the bottom?
    Is it even a fog effect or some kind of gradient color material? Unfortunately i did not find any samples or hint that could help me out.

    Would be greatful for any help.


     
  2. Flavelius

    Flavelius

    Joined:
    Jul 8, 2012
    Posts:
    945
    both are ways to do it. The gradient in the shader could be done using the worldposition.y to blend in the fog color, which is probably a bit easier than the post-effect fog version, if you want to do that by yourself (there a most certainly fog-effects/shaders that do this available for free somewehere though).