summaryrefslogtreecommitdiff
path: root/client/splash/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/splash/index.js')
-rw-r--r--client/splash/index.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/client/splash/index.js b/client/splash/index.js
index 24561b80..b559f5ee 100644
--- a/client/splash/index.js
+++ b/client/splash/index.js
@@ -1,4 +1,4 @@
-import oktween from '../util/vendor/oktween'
+// import oktween from '../util/vendor/oktween'
import { Vector3 } from 'three'
import OrbitControls from 'three-orbitcontrols'
@@ -16,11 +16,18 @@ controls.rotateSpeed = 1 / 4
controls.zoomSpeed = 1
controls.keyPanSpeed = 1 / 2
+function build() {
+ init()
+ cloud.init()
+ face.init()
+ animate()
+}
+
function animate() {
requestAnimationFrame(animate)
- camera.position.z += -0.0025
- camera.rotation.y += 0.00001
+ // camera.position.z += -0.0025
+ // camera.rotation.y += 0.00001
controls.update()
cloud.update()
@@ -32,11 +39,4 @@ function animate() {
render()
}
-function build() {
- init()
- cloud.init()
- face.init()
- animate()
-}
-
document.addEventListener('DOMContentLoaded', build)