2024-09-15 11:18:36 +02:00
|
|
|
#!/bin/js
|
|
|
|
console.log("/root/index.js: hello world")
|
2024-10-23 18:51:56 +02:00
|
|
|
|
|
|
|
function doTHREE(){
|
|
|
|
const scene = AFRAME.scenes[0]
|
|
|
|
const object = new THREE.Mesh(
|
|
|
|
new THREE.BoxGeometry(1, 1, 1),
|
|
|
|
new THREE.MeshBasicMaterial({ color: 0xff0000 })
|
|
|
|
);
|
|
|
|
object.position.set(0.3, 1.4, -0.4)
|
|
|
|
object.scale.set(0.2,0.2,0.2)
|
|
|
|
scene.add(object);
|
|
|
|
}
|
|
|
|
|
|
|
|
//doTHREE()
|
|
|
|
|
|
|
|
// for [higherlevel] AFRAME markup see ~/index.html
|