Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mquangdev committed May 2, 2024
1 parent 5dd0b46 commit a84630d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/3D-Portfolio/src/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/src/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/3D-Portfolio/src/main.jsx"></script>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions src/components/Avatar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useAnimations, useFBX, useGLTF, useScroll } from "@react-three/drei";
import { useFrame } from "@react-three/fiber";
import * as THREE from "three";
export default function Avatar(props) {
const { nodes, materials } = useGLTF("/3D-Portfolio/models/Me.glb");
const { nodes, materials } = useGLTF("./../../public/models/Me.glb");
const { animations: idleAnimation } = useFBX(
"/animations/Breathing_Idle.fbx"
);
Expand Down Expand Up @@ -115,6 +115,6 @@ export default function Avatar(props) {
);
}

useGLTF.preload("/3D-Portfolio/models/Me.glb");
useGLTF.preload("./../../public/models/Me.glb");
useFBX.preload("/animations/Breathing_Idle.fbx");
useFBX.preload("/animations/Walking.fbx");

0 comments on commit a84630d

Please sign in to comment.