small white cube
This commit is contained in:
parent
ea8057065a
commit
41fbeb703e
4 changed files with 6 additions and 5 deletions
Binary file not shown.
BIN
res/color_cube/color_cube.blend1
Normal file
BIN
res/color_cube/color_cube.blend1
Normal file
Binary file not shown.
Binary file not shown.
11
src/main.rs
11
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() => (),
|
||||
|
|
Loading…
Add table
Reference in a new issue