We should be able to build the website
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@ node_modules/
|
|||||||
|
|
||||||
#backup files from Blender
|
#backup files from Blender
|
||||||
*.blend1
|
*.blend1
|
||||||
|
dist/
|
||||||
|
dist/index.html
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
"build": "vite build"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "SEE LICENSE IN LICENSE",
|
"license": "SEE LICENSE IN LICENSE",
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ renderer.setSize( window.innerWidth, window.innerHeight );
|
|||||||
document.body.appendChild( renderer.domElement );
|
document.body.appendChild( renderer.domElement );
|
||||||
|
|
||||||
//Here, we create/load every asset used, and add it in the scene
|
//Here, we create/load every asset used, and add it in the scene
|
||||||
let assets = await addAssetsOnScene(scene);
|
addAssetsOnScene(scene).then(assets => {
|
||||||
|
|
||||||
/* --------------------- */
|
/* --------------------- */
|
||||||
/* | MOVEMENT | */
|
/* | MOVEMENT | */
|
||||||
@@ -56,3 +56,5 @@ function animate() {
|
|||||||
}
|
}
|
||||||
console.log("Ready to render scene, placed objects : "+scene.children.length);
|
console.log("Ready to render scene, placed objects : "+scene.children.length);
|
||||||
animate();
|
animate();
|
||||||
|
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user