Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Light passing through the object.

Discussion in 'Getting Started' started by SquareBunnyBoy, Aug 16, 2020.

  1. SquareBunnyBoy

    SquareBunnyBoy

    Joined:
    Feb 16, 2020
    Posts:
    27
    Good day, all!

    I have a problem with light passing through the objects. I tried source settings like shadow cone, but none of those helps. In some cases in can be fixed with lighting layers, but in some cases that's not the option. I also tried to create a cube, set it to "shadows only", fit the size of the room - doesn't work also. Light still passing through.



    Can some one please help with this one? Thanks!
     
  2. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,074
    What type of lamp/light are you using in the scene?
    Is your scene using a baked light map?
     
  3. OkaToka

    OkaToka

    Joined:
    Aug 15, 2020
    Posts:
    2
    Thanks for reply!

    I'm using area light here with mixed lighting and HDRP. But it looks like realtime lighting is passing through.
     
  4. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,074
  5. SquareBunnyBoy

    SquareBunnyBoy

    Joined:
    Feb 16, 2020
    Posts:
    27
    Yep... It's still there
     
  6. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,074
    Okay, what happens if you change the light, to another type of light like a spot light? Does the light still pass through?
     
  7. EduardoSeitz

    EduardoSeitz

    Joined:
    May 11, 2019
    Posts:
    4
    I'm having the same problem. All types of lights in realtime pass through objects.
     
  8. seokkub

    seokkub

    Joined:
    Oct 17, 2022
    Posts:
    3
    it still happenning with UniversalRP...........
    upload_2023-1-3_16-51-13.png
    upload_2023-1-3_16-51-31.png
     
  9. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,074
    @seokkub
    Is the wall connected to the floor, or are the wall and floor both seperate objects?
     
  10. Tohstt

    Tohstt

    Joined:
    Apr 23, 2017
    Posts:
    1
    the question with no reply tells me this helped a couple people lmao