feat(assets): load 3d models as well

This commit is contained in:
2025-12-17 18:00:11 +01:00
parent 2f16f382e5
commit fbcc7703c9
7 changed files with 113 additions and 78 deletions

View File

@@ -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]"