Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
delta911turbo authored Feb 12, 2024
1 parent e3c4ac6 commit 5e10afa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ loaderScript.onload = () => {
// Load 3D model
const modelPath = '3dmodels/HoleHead.glb';

function loadModel(path) {
function loadModel(modelPath) {
return new Promise((resolve, reject) => {
fetch(path)
fetch(modelPath)
.then(response => response.arrayBuffer())
.then(buffer => {
const loader = new THREE.GLTFLoader();
Expand Down

0 comments on commit 5e10afa

Please sign in to comment.