diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-27 19:12:20 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-27 19:12:20 +0100 |
| commit | 25b35038ae1f9cdfa222da44b7a4ddfd47713e3e (patch) | |
| tree | 0a04f0bcf1d99c4588b5fa899f6d28d4590c1f6a /client/splash/index.js | |
| parent | 618af6682e6de7662da961abd7e7de3a2f996bac (diff) | |
distribution
Diffstat (limited to 'client/splash/index.js')
| -rw-r--r-- | client/splash/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/splash/index.js b/client/splash/index.js index 4e168354..caa1d497 100644 --- a/client/splash/index.js +++ b/client/splash/index.js @@ -1,5 +1,6 @@ import oktween from '../util/vendor/oktween' +import { Vector3 } from 'three' import OrbitControls from 'three-orbitcontrols' import { init, render, camera, renderer } from './renderer' @@ -22,6 +23,9 @@ function animate() { controls.update() + let cameraTarget = new Vector3(0, 0, 0) + camera.lookAt(cameraTarget) + render() } |
