- Home /
Lighting of large objects not working with Unity 5?
I've found that in my project, lighting of large objects (such as a plane used for the ground) doesn't work. Has anyone else had this problem and if so, how have you solved it? Note: My ground is a grid so I'd rather not have to split it into several pieces.
Repro: 1. Create plane primitive at (0,0,0). 2. Adjust its size to (26,0,26) 3. Create a directional light facing the plane
The lighting works if the plane is of less size or above the height of about 10.
Answer by Tomer-Barkan · Apr 28, 2015 at 04:59 AM
I can think of two options:
Put the plane in a separate layer, then create a directional light that is perpendicular to the plane, and set it's culling mask to only the plane's layer. This will have a uniform light on the plane regardless of it's size, but will not affect other objects.
Second option, use a material with a self illuminating shader, or even a sprite. Any shader that doesn't account for scene lighting and just displays the full texture color should work.