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 | |
| parent | 618af6682e6de7662da961abd7e7de3a2f996bac (diff) | |
distribution
Diffstat (limited to 'client/splash')
| -rw-r--r-- | client/splash/index.js | 4 | ||||
| -rw-r--r-- | client/splash/renderer.js | 2 |
2 files changed, 4 insertions, 2 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() } diff --git a/client/splash/renderer.js b/client/splash/renderer.js index 75a0fd0e..0c21f964 100644 --- a/client/splash/renderer.js +++ b/client/splash/renderer.js @@ -11,8 +11,6 @@ camera.position.set(3, 0.15, 3) // camera.position.y = 0 // camera.position.z = 200 -// let cameraTarget = new THREE.Vector3(0, 0, 0) - export const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true }) renderer.setClearColor(scene.fog.color) // renderer.setClearColor(0x000000, 0) |
