Skip to content

Commit ec5c01d

Browse files
committed
fix 404 model position
1 parent de38957 commit ec5c01d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/hero-404/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const MOBILE_HEIGHT = 260;
2121
const DESKTOP_CAMERA_POSITION = new Vec3(8, -4, 15);
2222
const MOBILE_CAMERA_POSITION = new Vec3(14, -10, 21);
2323

24-
const MODEL_POSITION = new Vec3(0, 0, 0);
24+
const MODEL_POSITION = new Vec3(-0.3, 0, 0);
2525

2626
export const HeroASCIINotFound = () => {
2727
const containerRef = useRef<HTMLDivElement>(null);
@@ -110,7 +110,7 @@ void main() {
110110
camera.position.set(
111111
isMobile() ? MOBILE_CAMERA_POSITION : DESKTOP_CAMERA_POSITION
112112
);
113-
camera.lookAt(MODEL_POSITION);
113+
camera.lookAt(new Vec3(0, 0, 0));
114114

115115
const scene = new Transform();
116116
scene.position.copy(MODEL_POSITION);

0 commit comments

Comments
 (0)