// --------------------------------------------------------------------

        public void Bake(RenderManager renderer)
        {
            IsBaked = true;
            mCubemapGenerator.Generate(renderer, SceneObject.Scene, Transform.Position, ref mCubemap);
        }