Search Unity

ACCESS POST PROCESSING FOG EFFECT OVER CODE

Discussion in 'Universal Render Pipeline' started by ASIM-SENYUVA, May 3, 2020.

  1. ASIM-SENYUVA

    ASIM-SENYUVA

    Joined:
    Apr 29, 2013
    Posts:
    90
    How can I access the Post Processing Fog effect over code?

    I try
    using UnityEngine.Rendering.PostProcessing;
    Fog mFog = null;

    upload_2020-5-3_23-24-28.png

    But it gives an error. I want to change Fog Attenuation Distance over code

    upload_2020-5-3_23-25-25.png
     
  2. ASIM-SENYUVA

    ASIM-SENYUVA

    Joined:
    Apr 29, 2013
    Posts:
    90
    and also My fog class does not contain Fog Attenuation Distance? is there any other fog setting class ?
     
  3. ASIM-SENYUVA

    ASIM-SENYUVA

    Joined:
    Apr 29, 2013
    Posts:
    90