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

Question Realtime Directional light penertrates in the closed place.

Discussion in 'Global Illumination' started by Dongseon_SHIN, Apr 5, 2023.

  1. Dongseon_SHIN

    Dongseon_SHIN

    Joined:
    Jul 30, 2018
    Posts:
    2
    Hi all, I made totally closed place with 6 cubes like jail, and put camera in it.

    I expected totally black out display, but Game shows inside of the cube.

    Is there any material or Light system setting to light can't penerates to the object?

    I tried some shadow setting(bias etc..), It shows same result.

    Thanks in advance.
     
  2. Pema-Malling

    Pema-Malling

    Unity Technologies

    Joined:
    Jul 3, 2020
    Posts:
    254
    Hey there. Make sure you have shadows enabled on the directional light:
    upload_2023-4-5_11-52-32.png

    That the cubes are casting shadows:
    upload_2023-4-5_11-52-56.png

    If your setup is still not purely black in the "cube jail", it is probably caused by your environment lighting settings. Check Window > Rendering > Lighting > Environment. Here are some settings you can use to turn off ambient lighting and fallback reflections:
    upload_2023-4-5_11-54-41.png
     

    Attached Files:

    Dongseon_SHIN likes this.
  3. Dongseon_SHIN

    Dongseon_SHIN

    Joined:
    Jul 30, 2018
    Posts:
    2
    Thanks for reply. It was the env. lighting settings problem which is your last solution.
    Thanks a lot ! :)