// -------------------------------------------------------------------- public void Bake(RenderManager renderer) { IsBaked = true; CubemapGenerator cubemapGenerator = new CubemapGenerator(mSize); cubemapGenerator.Generate(renderer, SceneObject.Scene, Transform.Position, ref mCubemap); cubemapGenerator.Dispose(); }
// -------------------------------------------------------------------- public void Bake(RenderManager renderer) { IsBaked = true; mCubemapGenerator.Generate(renderer, SceneObject.Scene, Transform.Position, ref mCubemap); }