small white cube

This commit is contained in:
ethan merchant 2024-04-09 18:50:33 -04:00
parent ea8057065a
commit 41fbeb703e
4 changed files with 6 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -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() => (),