예제 #1
0
파일: GLTF.cs 프로젝트: ninesltd/Exporters
        public GLTFSampler AddSampler()
        {
            GLTFSampler gltfSampler = new GLTFSampler();

            gltfSampler.index = SamplersList.Count;
            SamplersList.Add(gltfSampler);
            return(gltfSampler);
        }
예제 #2
0
파일: GLTF.cs 프로젝트: ninesltd/Exporters
        public GLTFTexture AddTexture(GLTFImage image, GLTFSampler sampler)
        {
            GLTFTexture gltfTexture = new GLTFTexture();

            gltfTexture.index   = TexturesList.Count;
            gltfTexture.sampler = sampler?.index;
            gltfTexture.source  = image?.index;
            TexturesList.Add(gltfTexture);
            return(gltfTexture);
        }