Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Why does this happen inside a cave?

Discussion in 'General Graphics' started by ufulio, Nov 14, 2023.

  1. ufulio

    ufulio

    Joined:
    May 7, 2013
    Posts:
    84
    Hello, I am creating a game in LOW POLY
    and when I enter the tunnel, the cave, there is already light inside,
    and it's supposed to be very dark.
    And even more so, lines appear and I don't know how to solve this.
    I leave a very short video explaining, in my voice, the problem I have.
    I will greatly appreciate any help.
    thank you.
    .

     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,883
    If you have a Directional light enable shadows for it.
    And decrease or disable ambient/environmental lighting. Baking reflection probes inside the cave also might help
     
  3. ufulio

    ufulio

    Joined:
    May 7, 2013
    Posts:
    84
    thanks ... i will try this ......and come back
    thansk again !
    bless
     
    DevDunk likes this.
  4. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,859
    Your shadow distance is set too low.

    Typically, game engines stop rendering shadows at a certain distance from the camera to save resources. You can clearly see as you enter the cave that there’s shadows very close to the camera, but further away they just fade out and this gives the impression that there’s light coming from deep inside the cave.

    Depending on the render pipeline you’re using, check your “shadow cascades” settings and increase max shadow distance.
     
    DevDunk likes this.
  5. ufulio

    ufulio

    Joined:
    May 7, 2013
    Posts:
    84
    HEY !!! thanks ..... The lighting improved by 70 percent.
     
  6. ufulio

    ufulio

    Joined:
    May 7, 2013
    Posts:
    84
    sorry i dont know on unity 2022.3 Baking reflection to fix
    :(