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. Dismiss Notice

Feature Request Disable fog in shader built with shadergraph

Discussion in 'Shader Graph' started by DavidDecr, Jul 6, 2020.

  1. DavidDecr

    DavidDecr

    Joined:
    Jan 17, 2019
    Posts:
    5
    I've been looking for a way to disable fog in a shader built with shadergraph for some time. But unless I am mistaken, there is no option to do this.
    In a regular shader it usually suffices to remove for example #pragma multi_compile_fog

    Could this feature perhaps be implemented by means of keywords or other options?

    I have some sky objects I do not wish to be obscured by fog, while the rest of the terrain should be affected (different shaders).
     
  2. BigRookGames

    BigRookGames

    Joined:
    Nov 24, 2014
    Posts:
    329
    I see that it is there for transparent, but not opaque. I agree, it would be nice to have for opaque.
    upload_2020-7-6_10-7-12.png
     
  3. WendelinReich

    WendelinReich

    Joined:
    Dec 22, 2011
    Posts:
    228
    Bump that.

    In the meantime, is there perhaps a keyword one can put in the graph and in the material?
     
  4. archanger

    archanger

    Joined:
    Oct 18, 2019
    Posts:
    2
  5. Ne0mega

    Ne0mega

    Joined:
    Feb 18, 2018
    Posts:
    702
    I asked about this, and the answer was a little strange.

    https://forum.unity.com/threads/i-am-making-materials-ignore-fog-with-a-hack.1117930/

     
  6. lacas8282

    lacas8282

    Joined:
    Apr 25, 2015
    Posts:
    102
    Any news in this?
     
  7. pixelChisel

    pixelChisel

    Joined:
    May 19, 2016
    Posts:
    17
    Bumping that - Trying to make an unlit shader recieve no fog, but there's nothing in shadergraph 14.0.4 that would hint at an option.