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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5 Standard Shaders Ignoring Fog Help?

Discussion in 'Shaders' started by Neolightl, Apr 6, 2015.

  1. Neolightl

    Neolightl

    Joined:
    Nov 26, 2014
    Posts:
    36
    Hey guys, I seem to have having an issue with standard shaders completely ignoring the fog setting within the lighting tab. Any idea why this is happening or how to fix it? I have the fog settings cranked way up in a fresh copy of the viking scene on the unity asset store and everything is not effected except the water.

    Everything in here basically uses the standard shader. Any ideas?

     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,025
    The camera should have a post processing fog filter applied to it, find it and play with the settings there as well.
     
  3. Neolightl

    Neolightl

    Joined:
    Nov 26, 2014
    Posts:
    36
    I have not been using the post processing fog. I've been using global fog in the lighting tab.

    I just found a way to reproduce the bug.

    The bug occurs when I have my rendering path set to Deferred.

    The Unity 5 Standard shaders work when the render path is set to Forward, but as soon as you tick it to deferred they ignore the fog. All other shaders work except the Standard shader.