Search Unity

Point Light shining trough wall

Discussion in 'Global Illumination' started by Akura, Oct 31, 2021.

  1. Akura

    Akura

    Joined:
    Jun 28, 2015
    Posts:
    23
    Hi, I'm learning Unity and I try to use the point light in my scene. But I have a problem where the point light is shining through the walls:

    pointlight.PNG

    How can I use a point light without reducing the Range of a point light and the point light isn't shining through the wall?

    All the walls of the cube are static and the 'Cast Shadows' Properties are on 'Two Sided'.

    Thanks for your help
     
  2. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,875
    Reduce intensity and increase the indirect intensity value
     
  3. Akura

    Akura

    Joined:
    Jun 28, 2015
    Posts:
    23
    I reduced the intesity to 0.25 and increased the indirect intensity in the lighting settings to 5 (maximum).

    But nothing happens, as you can see in the image.
     

    Attached Files:

  4. Akura

    Akura

    Joined:
    Jun 28, 2015
    Posts:
    23
    Here are my Lighting Settings:
    LightingSettings.PNG LightingSettingsEnv.PNG
     
  5. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,875
    This solution is for baked mode... For realtime lighting you can't do anything
     
  6. Akura

    Akura

    Joined:
    Jun 28, 2015
    Posts:
    23
    It's also no solution for baked mode... baked.PNG
     
  7. UnityLighting

    UnityLighting

    Joined:
    Mar 31, 2015
    Posts:
    3,875
    You must bake the lightmap... see the lightmapping tutorials
     
  8. Akura

    Akura

    Joined:
    Jun 28, 2015
    Posts:
    23
    I did and I also cleared the Baked Date. Try it for yourself with the cube and the point light...