Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Post processing v2 and skybox fog

Discussion in 'Image Effects' started by Gametyme, Oct 5, 2018.

  1. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    Is there anyway to get fog to affect the skybox in pp v2? V1 had a fog option but looks it was removed,
     
  2. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    You can turn it on from Camera Layer component from PPS2. (Only visible in Deferred path)

    Untitled.jpg
     
    Gametyme likes this.
  3. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    Thanks! I’m using forward rendering .
     
  4. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    Sky fog works well on forward
     
  5. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    Not with ppv2. When I switch it back to forward its disabled.
     
  6. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    You don't need that option on forward. Sky fog will works by default on forward rendering path
     
  7. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    What version of unity are you using? I’m using 2018.2.8 and it doesn’t.
     
  8. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    I tested on 5.6 and 2017
     
  9. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    That’s odd. I wonder if it’s a bug.
     
  10. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    I just dl 2017 lts and the option is not there for forward rendering.
     
  11. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    Sky fog (from Lighting settings window) works by default in forward rendering. You don't need that option in camera layer component
     
  12. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    Do you have a screen shot?
     
  13. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    Turn on fog from light settings window

    it's simple
     
  14. Gametyme

    Gametyme

    Joined:
    May 7, 2014
    Posts:
    617
    I know that already. I want skybox fog in forward rendering.
     
  15. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,788
    Tha
    That option on Post Process Layer (Camera) is just to apply Lighting Settings fog into the scene in Deferred rendering path (it's not compatible by default to see lighting settings fog in deferred )

    I think you want to blend fog color with skybox color
    1. You can manually do this
    2. You can use custom fog solution from store
    3. you can use custom skybox shader with blend with fog color feature
     
    Last edited: Oct 18, 2018