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

Resolved I am making materials ignore fog with a hack

Discussion in 'High Definition Render Pipeline' started by Ne0mega, May 30, 2021.

  1. Ne0mega

    Ne0mega

    Joined:
    Feb 18, 2018
    Posts:
    703
    Set them to transparent, and they can be set to ignore fog. But that option goes away if the material is set to opaque. Any way *easy* way to make opaque materials ignore fog?
     
  2. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    717
    The only reason we have that checkbox with transparent material is because it's costly to apply fog on transparent so we get to be able to disable it. But that's not the case with opaque so nothing is planned on that side.

    So right now, there's no better way than your hack to make opaque material not receiving fog indeed.
     
    Ne0mega likes this.
  3. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    Is there a way to apply fog using HLSL in an HDRP non-ShaderGraph unlit transparent shader?
     
  4. lacas8282

    lacas8282

    Joined:
    Apr 25, 2015
    Posts:
    128
    How can disable fog?