Browse Source

animate a bit slower

master
Peter Hajas 3 years ago
parent
commit
1cfdced324
  1. 6
      script.js

6
script.js

@ -18,7 +18,9 @@ var areaNames = [ ]
var areasWithEntitiesToUpdate = { } var areasWithEntitiesToUpdate = { }
const renderer = new THREE.WebGLRenderer() const renderer = new THREE.WebGLRenderer({
logarithmicDepthBuffer : true
})
renderer.setSize( window.innerWidth, window.innerHeight ) renderer.setSize( window.innerWidth, window.innerHeight )
document.body.appendChild( renderer.domElement ) document.body.appendChild( renderer.domElement )
@ -75,7 +77,7 @@ function animate() {
fadeIn.start() fadeIn.start()
} }
homeContainer.rotation.z += 0.005 homeContainer.rotation.z += 0.003
renderer.render( scene, camera ) renderer.render( scene, camera )
} }

Loading…
Cancel
Save