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

Bug Unity's Decal Renderer -- Don't get affected by linear or exponential fog

Discussion in '2022.1 Beta' started by KarlKarl2000, Nov 25, 2021.

  1. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    592
    Hi @LeonhardP

    Thanks for the decal renderer, it's super useful!

    However, I found a bug ... fog doesn't seem to work well with the decal. Unless I'm missing a setting somewhere? :(

    I sent a bug report to you guys Case 1383719

    fog0.jpg fog1.jpg fog2.jpg
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,106
  3. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    592
    Thank you @LeonhardP for the support.

    I'm glad the report helped. :)

    Can I ask one more thing?

    I noticed the decal shader doesn't have properties for specular, metallic, emission maps, etc.

    Was this done to improve the decal shader performance?

    Should we just add it ourselves by editing the shader graph?
     
    Last edited: Dec 10, 2021
  4. LukasCh

    LukasCh

    Unity Technologies

    Joined:
    Mar 9, 2015
    Posts:
    102
    Default shadergraph is made as minimal for general purpose. You can easily create your own decal shadergraph and enable these options.
     
  5. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    592
    Thanks @LukasCh I'll test around to see if performance gets hit from enabling all the decal settings then.

    BTW I was testing out the fog node for shader graph.. hoping it would fix the fog issue. But I'm not sure if I'm using it correctly, can you take a look when you have time?

    I'm on 2021.2.0f1

    Thanks for the help!
    Fog_0.jpg
    Fog_1.jpg
    Fog_2.jpg
    Fog_3.jpg
     
  6. LukasCh

    LukasCh

    Unity Technologies

    Joined:
    Mar 9, 2015
    Posts:
    102
    Yes, so there is currently a bug with fog and screen space, it will be fixed.
     
  7. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Any strategies available for preventing it affecting dynamic objects? Currently I'm thinking of Renderer feature for the rendering order of it. Was interested in using this for Star Citizen like mesh decals.

    Sorry it's a little off topic.
     
  8. KarlKarl2000

    KarlKarl2000

    Joined:
    Jan 25, 2016
    Posts:
    592
    Thanks so much @LukasCh ! :):)

    Stop hijacking the thread! (jk) :D:p:p:D:p:D
     
    hippocoder likes this.
  9. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    It was already resolved for you :p
     
  10. LukasCh

    LukasCh

    Unity Technologies

    Joined:
    Mar 9, 2015
    Posts:
    102
    We are currently working on decal layers that should cover it
     
    LeonhardP likes this.