- Home /
Why does my lighting in the android build look different from my editor?
The lighting in my build is much different than in my editor. Here's a picture of the editor for my night(intentional in editor)
and night(problem in android build) The point light won't really show up in the android build until i get off the first platform. I'm still kinda new to unity so I'm not entirely sure if this is only a lighting thing. Also in the android build, the vertices can be clearly seen as I pass them with the point light whereas they won't be seen in the editor. Why is this happening?
Answer by FortisVenaliter · Apr 13, 2017 at 03:49 PM
So, it's probably due to the quality settings on Android. Most android devices aren't really powerful (or capable) enough to do per-pixel lighting, so they revert to per-vertex lighting and blend that. The downside is that meshes with wide areas between vertices will have uneven lighting. You can confirm this is the case by moving your light to one of the big cube's corners. If it shows up there, you know you're dealing with per-vertex lighting.
There's two ways to deal with this... The first is to switch it to always use per-pixel lighting, but that may exclude some devices. The second is to increase the vertex density on the mesh used for your world.
Yea, I checked by placing my animal near the edge where the vertices were, and saw that the light only shows up around the vertices. I guess maybe I should also look to organize my project a bit more. Thank you for your answer!