Search Unity

Bug Lights passes through objects

Discussion in 'Global Illumination' started by seokkub, Jan 3, 2023.

  1. seokkub

    seokkub

    Joined:
    Oct 17, 2022
    Posts:
    3
    I'm so new to unity, and I'm having a problem, I'm using Universal Render Pipeline and I have a map imported as FBX from Blender, but I'm trying to add lights, becouse my scene must be dark, and when I use spot lights or point lights, it passes through in objects.

    Here is a new scene that I made to verify if I didn't broke nothing but it still happening, I tried to create a new project and the same...

    upload_2023-1-3_16-55-38.png

    upload_2023-1-3_16-55-56.png
     
  2. DEEnvironment

    DEEnvironment

    Joined:
    Dec 30, 2018
    Posts:
    437
    try unchecking the UI layer
     
  3. seokkub

    seokkub

    Joined:
    Oct 17, 2022
    Posts:
    3
    you mean the UI layer in culling mask??

    i tried unchecking that but nothing happens
    upload_2023-1-3_17-35-14.png
     
  4. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    This is an inherent limitation of rasterized rendering. You'd need to enable realtime shadows for your point light, or cull lights via script when they are occluded by geometry.