use draco_oxide::io::gltf::GltfTranscoder;
use std::path::Path;
fn main() {
let input_path = "input.glb";
let output_path = "output.glb";
let input = std::fs::read(input_path).expect("Failed to read input file");
let transcoder = GltfTranscoder::default();
let warnings = transcoder
.transcode_to_file(&input, Path::new(output_path))
.expect("Transcoding failed");
for warning in warnings {
println!("Warning: {}", warning);
}
println!("Transcoding complete: {} -> {}", input_path, output_path);
}