added the globalrender to lighting publish and fixed the rebuiling XML
and empty layers.