예제 #1
0
        // --------------------------------------------------------------------

        public void Bake(RenderManager renderer)
        {
            IsBaked = true;

            CubemapGenerator cubemapGenerator = new CubemapGenerator(mSize);

            cubemapGenerator.Generate(renderer, SceneObject.Scene, Transform.Position, ref mCubemap);
            cubemapGenerator.Dispose();
        }
예제 #2
0
        // --------------------------------------------------------------------

        public void Init(int size)
        {
            mSize             = size;
            mCubemap          = new Cubemap();
            mCubemapGenerator = new CubemapGenerator(size);
        }