Commit c2d3ddbd authored by Esguerra Montana's avatar Esguerra Montana
Browse files

Update index.html

parent 8dd4045c
Pipeline #9366 passed with stage
in 6 seconds
...@@ -24,10 +24,10 @@ async function activateXR() { ...@@ -24,10 +24,10 @@ async function activateXR() {
const scene = new THREE.Scene(); const scene = new THREE.Scene();
// Color of the torus geometry. // Color of the torus geometry.
const material = new THREE.MeshBasicMaterial({color: 0xff0000}); const material = new THREE.PointsMaterial({ color: 0x7a0177, size: 0.1 });
// Create the torus and add it to the demo scene. // Create the torus and add it to the demo scene.
const torus = new THREE.Mesh( new THREE.TorusKnotGeometry(0.3, 0.2, 64, 8, 2, 3), material); const torus = new THREE.Mesh( new THREE.TorusKnotGeometry(0.3, 0.2, 32, 6, 2, 3), material);
//position the next geometry (sphere) //position the next geometry (sphere)
torus.position.set(0, 0, -1); torus.position.set(0, 0, -1);
// Add the mesh to the scene // Add the mesh to the scene
......
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