Generate lightmap in target() to avoid using stale one.