Commit 4f4a3ffe authored by Thapa's avatar Thapa
Browse files

Update index.html

parent 5ea38436
Pipeline #7871 passed with stage
in 5 seconds
......@@ -26,18 +26,19 @@ async function activateXR() {
// The cube will have a different color on each side.
const materials = [
new THREE.MeshNormalMaterial({color: 0xff0000}),
new THREE.MeshNormalMaterial({color: 0xff0000}),
new THREE.MeshNormalMaterial({color: 0xff0000}),
new THREE.MeshNormalMaterial({color: 0xff0000}),
new THREE.MeshNormalMaterial({color: 0xff0000}),
new THREE.MeshNormalMaterial({color: 0x0000ff}),
new THREE.MeshNormalMaterial({color: 0x00ff00}),
new THREE.MeshNormalMaterial({color: 0xff00ff}),
new THREE.MeshNormalMaterial({color: 0x00ffff}),
new THREE.MeshNormalMaterial({color: 0xffff00})
];
// Create the cube and add it to the demo scene.
const cube = new THREE.Mesh(new THREE.SphereGeometry(0.2, 0.2, 0.2), materials);
const cube = new THREE.Mesh(new THREE.BoxBufferGeometry(0.2, 0.2, 0.2), materials);
cube.position.set(1, 1, 1);
scene.add(cube);
// Set up the WebGLRenderer, which handles rendering to the session's base layer.
const renderer = new THREE.WebGLRenderer({
alpha: true,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment