feat(gallery): transition to and from the nds

This commit is contained in:
2026-01-04 20:53:52 +01:00
parent 1f61eee93a
commit 18f91981ec
13 changed files with 253 additions and 14 deletions

View File

@@ -41,6 +41,15 @@ const { camera, renderer } = useTresContext();
model.scale.set(100, 100, 100);
const app = useAppStore();
watch(
() => camera.activeCamera.value,
(cam) => {
if (cam) app.setCamera(cam);
},
{ immediate: true },
);
meshes.clear();
model.traverse((child) => {
if (child instanceof THREE.Mesh) {
@@ -199,6 +208,7 @@ const handleClick = (event: MouseEvent) => {
switch (intersection.object.name) {
case TOP_SCREEN:
case BOTTOM_SCREEN: {
console.log(intersection);
const canvas =
intersection.object.name === TOP_SCREEN
? props.topScreenCanvas