Mixamo viewer boilerplate

This commit is contained in:
Danny McGee
2024-01-25 16:08:13 -05:00
parent a4b7b3d8e2
commit 58745420a3
6 changed files with 71 additions and 1 deletions
+23
View File
@@ -115,6 +115,29 @@ pub fn start_bvh_viewer(
app.run();
}
#[cfg_attr(feature = "wasm", wasm_bindgen(js_name = startMixamoViewer))]
pub fn start_mixamo_viewer(
mixamo_path: &str,
skybox_id: &str,
canvas_selector: &str,
canvas_alt: &str,
viewport_size: ViewportSize,
) {
let mut app = start_internal(
"Mannequin.gltf",
skybox_id,
canvas_selector,
canvas_alt,
viewport_size,
StudioMode::Viewer,
);
// TODO
info!("Mixamo path: '{mixamo_path}'");
app.run();
}
#[cfg_attr(feature = "wasm", wasm_bindgen(js_name = startViewer))]
/// Start the application as a read-only viewer for a single library object.
///