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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Light is passing the wall

Discussion in 'General Graphics' started by matharoo, Aug 10, 2015.

  1. matharoo

    matharoo

    Joined:
    May 17, 2015
    Posts:
    22
    The Light object is here, inside the building...


    But why is it glowing outside, like there's no wall in between?


    Am I doing something wrong?
     
  2. KingMatthew

    KingMatthew

    Joined:
    Jul 7, 2013
    Posts:
    166
    You will need to use shadows. You can make them dynamic or you can bake them.
     
  3. matharoo

    matharoo

    Joined:
    May 17, 2015
    Posts:
    22
    But I am using shadows?
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,021
    He said, more than six months later.

    (btw, it could be a number of things, some images would help, the ones in the first post are not working anymore)
     
  5. matharoo

    matharoo

    Joined:
    May 17, 2015
    Posts:
    22
    I can't give any pics right now.
    I can tell you about the problem.

    There's a building, and there's a point light inside it. If you see from outside of the building, you can see the reflection on the floor (the reflection of the light), as if there is no wall in between. That's the problem.
     
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,021
    It could be a number of things, I have to see it.

    (are you using precomputed lighting? reflection probes?)
     
  7. MV10

    MV10

    Joined:
    Nov 6, 2015
    Posts:
    1,889
    I've read that if your walls are too thin light can "leak" through them.