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

Problem with lighting on android mobile

Discussion in 'General Graphics' started by surajsirohi1008, Jul 10, 2017.

  1. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    Screenshot_20170703-132116.png

    As you can see in the attached image (screenshot of game from mobile), there is is problem in lighting , those primitive cuboids are suppose to be clean green, but I'm getting those black lines.
     

    Attached Files:

  2. kritoa

    kritoa

    Joined:
    Apr 21, 2017
    Posts:
    60
    Those are artifacts from your objects going in and out of their own self-shadow. Some common fixes are increasing your shadow bias (and in your case, especially normal bias) on your light, improving shadow quality and moving your shadow cascade splits around to better closely bound your objects (both in edit->projectsettings->quality).

    Also it's kind of hard to tell but it looks like your main light might be very close to directly overhead, which would be worst case for the vertical surfaces on your blocks - you could try rotating the light down a little bit so the light rays don't hit those surfaces at such a grazing angle.
     
    surajsirohi1008 likes this.
  3. surajsirohi1008

    surajsirohi1008

    Joined:
    Jun 21, 2016
    Posts:
    266
    thank you! It has greatly improved the lighting in my game