summaryrefslogtreecommitdiff
path: root/client/splash/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-28 17:57:38 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-28 17:57:38 +0100
commitc6da699f18426079435ad4664e7c715386ff82c0 (patch)
treecea63afb3c4e8e56fc2cc8f773f12e5618683cea /client/splash/index.js
parent0c0c2ec2ecfd64b16ff6ca0e69142223615f0c36 (diff)
display a random face
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)