Separation of lightmap generator tool from main code