Fixed prelighting to work on the terrain segments.