use nightshade_api::prelude::*;
fn main() {
run_scene(|world| {
let bytes = std::env::args()
.nth(1)
.and_then(|path| std::fs::read(path).ok())
.unwrap_or_else(|| include_bytes!("../../../assets/gltf/fox.glb").to_vec());
show_grid(world, false);
spawn_floor(world, 6.0);
let model = spawn_model(world, &bytes, vec3(0.0, 0.0, 0.0));
set_scale(world, model, vec3(0.02, 0.02, 0.02));
play_animation(world, model, 0);
set_animation_looping(world, model, true);
orbit_camera(world, vec3(0.0, 1.0, 0.0), 5.0);
})
.unwrap();
}