diff --git a/.vscode/settings.json b/.vscode/settings.json index aef8443..cbb7b3a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "liveServer.settings.port": 5501 + "liveServer.settings.port": 5502 } \ No newline at end of file diff --git a/script.js b/script.js index b9f0261..eb2d051 100644 --- a/script.js +++ b/script.js @@ -65,11 +65,10 @@ function startVis(width, height, depth) { camera.position.z = 100; scene.add(camera); - const renderer = new THREE.WebGLRenderer({ alpha: true }); // init like this + const renderer = new THREE.WebGLRenderer({ alpha: true }); renderer.setSize(window.innerWidth, window.innerHeight); - //renderer.setClearColor("#ced0ce"); - renderer.setClearColor(0xffffff, 0); // second param is opacity, 0 => transparent + renderer.setClearColor(0xffffff, 0); area.appendChild(renderer.domElement); const geometry = new THREE.BoxGeometry(width, height, depth, 20, 20, 20);