feat(gallery): transition to and from the nds
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import * as THREE from "three";
|
||||
import type { Screen as NDSScreen } from "#components";
|
||||
|
||||
// TODO: keys doesn't work anymore if 3D modea is disabled
|
||||
const ENABLE_3D = false;
|
||||
const ENABLE_3D = true;
|
||||
|
||||
type ScreenInstance = InstanceType<typeof NDSScreen>;
|
||||
|
||||
@@ -59,7 +59,7 @@ useKeyUp((key) => {
|
||||
<TresPerspectiveCamera
|
||||
:args="[45, 1, 0.001, 1000]"
|
||||
:position="[0, 10, 12]"
|
||||
:rotation="[-Math.PI / 4.7, 0, 0]"
|
||||
:rotation="[THREE.MathUtils.degToRad(-38.3), 0, 0]"
|
||||
/>
|
||||
|
||||
<TresAmbientLight />
|
||||
@@ -79,6 +79,7 @@ useKeyUp((key) => {
|
||||
<ContactTopScreen v-else-if="app.screen === 'contact'" />
|
||||
<ProjectsTopScreen v-else-if="app.screen === 'projects'" />
|
||||
<SettingsTopScreen v-else-if="app.screen === 'settings'" />
|
||||
<GalleryTopScreen v-else-if="app.screen === 'gallery'" />
|
||||
</Screen>
|
||||
</div>
|
||||
<div>
|
||||
@@ -87,6 +88,7 @@ useKeyUp((key) => {
|
||||
<ContactBottomScreen v-else-if="app.screen === 'contact'" />
|
||||
<ProjectsBottomScreen v-else-if="app.screen === 'projects'" />
|
||||
<SettingsBottomScreen v-else-if="app.screen === 'settings'" />
|
||||
<GalleryBottomScreen v-else-if="app.screen === 'gallery'" />
|
||||
</Screen>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user