public GLTFSampler AddSampler() { GLTFSampler gltfSampler = new GLTFSampler(); gltfSampler.index = SamplersList.Count; SamplersList.Add(gltfSampler); return(gltfSampler); }
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); }