feat(assets): load 3d models as well
This commit is contained in:
@@ -3,6 +3,8 @@ import type { Screen as NDSScreen } from "#components";
|
||||
|
||||
type ScreenInstance = InstanceType<typeof NDSScreen>;
|
||||
|
||||
const { isReady } = useAssets();
|
||||
|
||||
const route = useRoute();
|
||||
const screen = computed(() => route.query.screen as string | undefined);
|
||||
|
||||
@@ -14,7 +16,8 @@ const bottomScreenCanvas = computed(() => bottomScreen.value?.canvas ?? null);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<LoadingScreen v-if="!isReady" />
|
||||
<div v-else>
|
||||
<TresCanvas window-size clear-color="#181818">
|
||||
<TresPerspectiveCamera
|
||||
:args="[45, 1, 0.001, 1000]"
|
||||
|
||||
Reference in New Issue
Block a user