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

Question URP Turn off fog for portal cards?

Discussion in 'Shader Graph' started by JacketPotatoeFan, Oct 15, 2020.

  1. JacketPotatoeFan

    JacketPotatoeFan

    Joined:
    Nov 23, 2016
    Posts:
    34
    Is it possible to disable fog for certain objects in my scene?

    I am creating portal cards that help direct the player to entrances so they don't get lost. I created a shader that does depth fading. However, using fog basically hides the portal card effect.

    Any ideas?

    Thanks.
     
  2. JacketPotatoeFan

    JacketPotatoeFan

    Joined:
    Nov 23, 2016
    Posts:
    34
    Just an update to this in case anyone else is curious.

    So a portal card in my game is like a light foggy area that helps the player find their way. To solve my issue with fog covering it, I made it unlit, that way it could be seen from a distance.