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

Bug Weird light glitch/issue

Discussion in 'General Graphics' started by Osrro, Feb 17, 2023.

  1. Osrro

    Osrro

    Joined:
    Oct 29, 2020
    Posts:
    2
    upload_2023-2-17_16-58-10.png

    the problem is some of the walls are not lit at all they stay black all of the time even when I shine a flashlight on them they stay black.

    I've tried both real-time and baked lighting

    the best result is real-time which's in the screenshot but there's still some spots are black, the square highlighted area is the correct color and working correctly they all should be the same but for some reason are not.

    also baked lightmaps turns them all black i have them checked as static and also they're Unity cubes mesh so they all should have Lightmap UVs ready.

    sometimes when I look at them from a certain angle they light up correctly like seen well kinda correct
    upload_2023-2-17_17-4-3.png upload_2023-2-17_17-4-32.png
     
  2. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    761
    Hi, have you tried switching to Deferred or Forward+ rendering path in URP's renderer asset?
     
  3. Osrro

    Osrro

    Joined:
    Oct 29, 2020
    Posts:
    2
    Thank you so much it worked.
     
    wwWwwwW1 likes this.