From 1cfdced3248ad0737ed4670ccd9e0301bb049a94 Mon Sep 17 00:00:00 2001 From: Peter Hajas Date: Sun, 8 May 2022 00:35:55 -0600 Subject: [PATCH] animate a bit slower --- script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 50131b4..3547a26 100644 --- a/script.js +++ b/script.js @@ -18,7 +18,9 @@ var areaNames = [ ] var areasWithEntitiesToUpdate = { } -const renderer = new THREE.WebGLRenderer() +const renderer = new THREE.WebGLRenderer({ + logarithmicDepthBuffer : true +}) renderer.setSize( window.innerWidth, window.innerHeight ) document.body.appendChild( renderer.domElement ) @@ -75,7 +77,7 @@ function animate() { fadeIn.start() } - homeContainer.rotation.z += 0.005 + homeContainer.rotation.z += 0.003 renderer.render( scene, camera ) }