Skip to content

Commit

Permalink
ponovnichange
Browse files Browse the repository at this point in the history
  • Loading branch information
kuncgregor committed Jan 12, 2024
1 parent 137d136 commit 0dd73a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"liveServer.settings.port": 5501
"liveServer.settings.port": 5502
}
5 changes: 2 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0dd73a4

Please sign in to comment.