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