fixed index.js

This commit is contained in:
Leon van Kammen 2024-12-18 10:40:56 +01:00
parent f69653a0a9
commit 301cad8398
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
console.log("/root/index.js: hello world") console.log("/root/index.js: hello world")
function doTHREE(){ function doTHREE(){
const scene = AFRAME.scenes[0] const scene = AFRAME.scenes[0].object3D
const object = new THREE.Mesh( const object = new THREE.Mesh(
new THREE.BoxGeometry(1, 1, 1), new THREE.BoxGeometry(1, 1, 1),
new THREE.MeshBasicMaterial({ color: 0xff0000 }) new THREE.MeshBasicMaterial({ color: 0xff0000 })
@ -12,6 +12,6 @@ function doTHREE(){
scene.add(object); scene.add(object);
} }
//doTHREE() //doTHREE() // uncomment this to test
// for [higherlevel] AFRAME markup see ~/index.html // for [higherlevel] AFRAME markup see ~/index.html

BIN
dist/v86-linux.iso vendored

Binary file not shown.