Search Unity

Ambient Color?

Discussion in 'Graphics Experimental Previews' started by Unity-Artcraft, Dec 4, 2019.

  1. Unity-Artcraft

    Unity-Artcraft

    Joined:
    Jul 28, 2018
    Posts:
    37
    I like to change the shadow colors like in LWRP however ambient color doesn't exist in HDRP. I can only change the sky and mildly influence the shadowcolors but I don't want to change the sky. Is there a way to change shadow colors and only shadow colors?
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    646
    Hi @Unity-Artcraft,

    Have you even looked into the Shadows section of lights properly, I wonder? Looks like you haven't even touched every button once :). There's that gear icon in the top-right corner of the Shadows section, which reveals additional features that are not visible by default. You can adjust Dimmer to make shadows less opaque and add Tint to colorize them as you like.

    And in addition, it's also documented in the manual, too.
    https://docs.unity3d.com/Packages/c...gh-definition@7.1/manual/Shadows-in-HDRP.html

    shadow_tint.png
     
  3. Unity-Artcraft

    Unity-Artcraft

    Joined:
    Jul 28, 2018
    Posts:
    37
    Thats not what I was searching for, it changes a few shadows yes but not the ambient color....
    I like to change the color of this shadow:



    to this:

     
  4. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    646
    Tint changes the color of shadow, not shading. So if you are talking about changing the shading, I think it can only be done by adjusting the surface shader itself. And custom shaders aren't supported yet for HDRP. I think you might have to try fake it (if possible using emission etc.?)

    And in some situations you probably could get away with post-processing... Depending on your art style/content and many other factors.
     
  5. Unity-Artcraft

    Unity-Artcraft

    Joined:
    Jul 28, 2018
    Posts:
    37
    Yea, sorry, I have some issues with terminology, shading is what I want not shadows.... Well that's quite a bummer, I will try my luck with shader graph (blending multiple colors) and emission. Thanks!
     
    Olmi likes this.
  6. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    646
    Yeah anyway it's bit sad that there's no options for this simple things, like ambient color override.
     
  7. GameDevCouple_I

    GameDevCouple_I

    Joined:
    Oct 5, 2013
    Posts:
    2,247
    You can do this using a custom shader very easily :) Thats how I would go about this
     
  8. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    646
    @GameDevCouple HDRP custom shader?
     
unityunity