diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-28 00:12:14 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-28 00:12:14 +0100 |
| commit | bd0bb81ee5d1856f3b3e86b43ac7ff7312472dfe (patch) | |
| tree | 95c7154838296385d2bda1235c3ae66d0aa8b351 /client/splash/renderer.js | |
| parent | 93a7fae69e5c3a45515a309cfcd96a0fa90a602b (diff) | |
moar constants etc
Diffstat (limited to 'client/splash/renderer.js')
| -rw-r--r-- | client/splash/renderer.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/splash/renderer.js b/client/splash/renderer.js index 8d2a3393..369d02fa 100644 --- a/client/splash/renderer.js +++ b/client/splash/renderer.js @@ -1,9 +1,11 @@ import * as THREE from 'three' +import { FOG_COLOR } from './constants' + export const scene = new THREE.Scene() -scene.fog = new THREE.Fog(0x191919, 2, 15) +scene.fog = new THREE.Fog(FOG_COLOR, 2, 15) -export const camera = new THREE.PerspectiveCamera(35, window.innerWidth / window.innerHeight, 1, 15) +export const camera = new THREE.PerspectiveCamera(35, window.innerWidth / window.innerHeight, 0.01, 15) camera.position.set(3, 0.15, 3) // export const camera = new THREE.PerspectiveCamera(70, w / h, 1, 10000) |
