diff options
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) |
