- Home /
Incorrect lightmap on scene with terrain and directional light
I have a scene with a wizard on forest. The forest is composed of a terrain with trees and vegetation put together using the Paint Trees/Details tools from the Terrain Component. There is also some trees that are independent objects, using Unity's LOD system.
When I try to bake all the lights, the light map generated just make the entire scene dark. The first image is the scene with realtime lights, the second one is the failed baked lightmap.

I have set the meshes of all objects to Static, the directional light to Baked, I have checked Generate Lightmap UV's on all models and turned off Realtime GI in the Lighting panel. The lighting mode is set to Shadowmask and and all the shaders are set to Standard (Specular Setup).
I have another scene in a library that only has point lights, no directional lights and no terrain either, and the lightmap works fine there. Could the problem be with the terrain?
Your answer