diff --git a/res/color_cube/color_cube.blend b/res/color_cube/color_cube.blend index 7add51d..91df68d 100644 Binary files a/res/color_cube/color_cube.blend and b/res/color_cube/color_cube.blend differ diff --git a/res/color_cube/color_cube.blend1 b/res/color_cube/color_cube.blend1 new file mode 100644 index 0000000..7add51d Binary files /dev/null and b/res/color_cube/color_cube.blend1 differ diff --git a/res/color_cube/color_cube.glb b/res/color_cube/color_cube.glb index ae860c5..1736b06 100644 Binary files a/res/color_cube/color_cube.glb and b/res/color_cube/color_cube.glb differ diff --git a/src/main.rs b/src/main.rs index 7c34d3d..798f9d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,20 +1,21 @@ use manifest_dir_macros::directory_relative_path; -use stardust_xr_fusion::{client::Client, core::values::ResourceID, drawable::Model, spatial::Transform}; +use stardust_xr_fusion::{ + client::Client, core::values::ResourceID, drawable::Model, spatial::Transform +}; #[tokio::main] async fn main() { let (client, event_loop) = Client::connect_with_async_loop().await.unwrap(); - client.set_base_prefixes(&[directory_relative_path!("res")]); - let model = Model::create( + let _model = Model::create( client.get_root(), - Transform::none(), + Transform::identity(), &ResourceID::new_namespaced( "color_cube", "color_cube.glb" ), - ); + ).unwrap(); tokio::select! { _ = tokio::signal::ctrl_c() => (),