예제 #1
0
파일: Exporter.cs 프로젝트: magicinn/VGltf
        public Exporter()
        {
            Gltf          = new Types.Gltf();
            Cache         = new ResourcesCache <string>();
            BufferBuilder = new BufferBuilder();

            Nodes     = new NodeExporter(this);
            Meshes    = new MeshExporter(this);
            Materials = new MaterialExporter(this);
            Textures  = new TextureExporter(this);
            Images    = new ImageExporter(this);

            // Asset
            Gltf.Asset = new Types.Asset
            {
                Version = "2.0", // glTF 2.0
            };
        }
예제 #2
0
 public abstract IndexedResource <Material> Export(MaterialExporter exporter, Material mat);