[-] Remove unused configurations
This commit is contained in:
@@ -5,14 +5,9 @@ import {Color} from "three";
|
||||
*/
|
||||
export const config = {
|
||||
|
||||
background: '#333',
|
||||
|
||||
// Field of vision and cutoff frustum for near and far
|
||||
cam: {fov: 50, near: 1, far: 5000},
|
||||
|
||||
// Mouse movement factor
|
||||
mouseFactor: 20,
|
||||
|
||||
// Smooth movements (speeds are in terms of pixels per ms)
|
||||
smooth: {mouseSpeed: 10 * window.devicePixelRatio},
|
||||
|
||||
|
||||
@@ -104,7 +104,6 @@ function update(dt: number): void
|
||||
export function start(id: string): void
|
||||
{
|
||||
scene = new THREE.Scene()
|
||||
scene.background = new THREE.Color(config.background)
|
||||
// Create camera
|
||||
camera = new THREE.PerspectiveCamera(config.cam.fov, window.innerWidth / window.innerHeight,
|
||||
config.cam.near, config.cam.far)
|
||||
|
||||
Reference in New Issue
Block a user