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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Ambient Lighting

Discussion in 'High Definition Render Pipeline' started by Techmologue, Nov 22, 2022.

  1. Techmologue

    Techmologue

    Joined:
    Nov 21, 2017
    Posts:
    41
    Hello.

    Is there a standard way to add ambient light when using HDRP?
    I used to be able to change the ambient light to a lighter value, to avoid total darkness in certain areas. But now they have become super dark and there is no option to add ambient light or change it.
    I know it is not physically correct, but how would someone go about at least faking it?

    Thanks
     
  2. akent99

    akent99

    Joined:
    Jan 14, 2018
    Posts:
    570
    You can add a directional light with shadows turned off to get light from above. You could probably add a few from different directions I guess as well. You can turn "ground tint" on for light from the ground up (but don't put it on too hard or it looks weird). You can add the Indirect Light post processing to bounce light around some more. But I find lighting hard to do well. If any use, I have been collecting notes for myself in a blog post: https://extra-ordinary.tv/2022/09/25/lighting-tricks-in-unity-hdrp-for-cinematic-effect/

    But for me, I went to HDRP for more advanced lighting. Things like making sure you get the right Lumens values for lights is important - a single light that is out of the right range can mess up everything else. I also am only doing realtime - there is baking etc that I do not do which behaves a bit differently.
     
    Techmologue likes this.
  3. Techmologue

    Techmologue

    Joined:
    Nov 21, 2017
    Posts:
    41
    That was very useful! Thank you
     
  4. Zolden

    Zolden

    Joined:
    May 9, 2014
    Posts:
    141
    If you are using physically based sky, there's "miscellaneous -> exposure compensation" parameter. You can increase it and decrease directional light intensity, which would make shadows relatively brighter.
     
    Techmologue likes this.
  5. Julien_Unity

    Julien_Unity

    Unity Technologies

    Joined:
    Nov 17, 2015
    Posts:
    57
  6. Techmologue

    Techmologue

    Joined:
    Nov 21, 2017
    Posts:
    41