Search Unity

Question Why Isn't An Enclosed Space Completely Dark?

Discussion in 'High Definition Render Pipeline' started by ThatProgrammerJack, May 17, 2022.

  1. ThatProgrammerJack

    ThatProgrammerJack

    Joined:
    Jan 6, 2019
    Posts:
    32
    I'm working on a game with an interior dark scene with a few small lights and an outside brighter scene with a directional light. I've noticed that, when I enclose the interior space, shadows are indeed cast by the directional light, but it's still very bright inside. In addition, the only way to get true dark within the interior space is to reduce the directional light until it is disabled entirely, and you can see the supposedly "shadowed" spaces getting darker when you reduce the directional light. Why is this, and how can I get around it?
     
  2. adrien-de-tocqueville

    adrien-de-tocqueville

    Unity Technologies

    Joined:
    Mar 16, 2020
    Posts:
    270
    Maybe you have a physically based sky which is impacted by the sun light, which in turns impact the ambient probe.

    Usually to solve this use case you should put a reflection probe inside your enclosed space
     
  3. ThatProgrammerJack

    ThatProgrammerJack

    Joined:
    Jan 6, 2019
    Posts:
    32
    Interesting. I'll try that out.