Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Light problem

Discussion in 'Editor & General Support' started by Rafkasik, Jun 29, 2014.

  1. Rafkasik

    Rafkasik

    Joined:
    Jun 29, 2014
    Posts:
    5


    Can someone tell me why is this happening and how do I fix it?
     
  2. MakeCodeNow

    MakeCodeNow

    Joined:
    Feb 14, 2014
    Posts:
    1,246
    That looks like a depth buffer precision issue. Try to push out your near clip plane and, if you can, decrease your far clip plane. If this is on mobile, make sure you're using a 24/32 bit depth buffer and not a 16 bit one. You may also need to play around with the depth bias of your directional shadows, as some of the flickering may be caused by them.
     
    Rafkasik likes this.
  3. Rafkasik

    Rafkasik

    Joined:
    Jun 29, 2014
    Posts:
    5
    Thank you very much, the clipping panes were the issue.
     
  4. MakeCodeNow

    MakeCodeNow

    Joined:
    Feb 14, 2014
    Posts:
    1,246
    Happy to help. Game looks great, btw. If you're looking into doing open world streaming stuff, check out my product SECTR.