public MeshLoader(GltfLoaderData data) { this.data = data; materialLoader = new MaterialLoader(data); accessorLoader = new AccessorLoader(data); }
private Material LoadMaterial(glTFLoader.Schema.MeshPrimitive primitive, MaterialLoader materialLoader) { var materialIndex = primitive.Material; if (materialIndex.HasValue) { return(materialLoader.LoadMaterial(materialIndex.Value)); } else { return(materialLoader.LoadDefaultMaterial()); } }