// -------------------------------------------------------------------- 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 Init(int size) { mSize = size; mCubemap = new Cubemap(); mCubemapGenerator = new CubemapGenerator(size); }