feat(nds): intro animation

This commit is contained in:
2026-01-07 22:17:37 +01:00
parent b2c7dc5131
commit ec9f8cc264
3 changed files with 201 additions and 85 deletions

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
import * as THREE from "three";
import type { Screen as NDSScreen } from "#components";
const ENABLE_3D = true;
@@ -56,11 +55,7 @@ useKeyUp((key) => {
<LoadingScreen v-if="!isReady" />
<div v-else>
<TresCanvas v-if="ENABLE_3D" window-size clear-color="#181818">
<TresPerspectiveCamera
:args="[45, 1, 0.001, 1000]"
:position="[0, 10, 12]"
:rotation="[THREE.MathUtils.degToRad(-38.3), 0, 0]"
/>
<TresPerspectiveCamera :args="[45, 1, 0.001, 1000]" />
<TresAmbientLight />
<TresDirectionalLight />