Esempio n. 1
0
        public GLTFSampler AddSampler()
        {
            GLTFSampler gltfSampler = new GLTFSampler();

            gltfSampler.index = SamplersList.Count;
            SamplersList.Add(gltfSampler);
            return(gltfSampler);
        }
Esempio n. 2
0
        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);
        }