orthographic mode by default

This commit is contained in:
Val Erastov 2022-08-30 19:34:31 -07:00
parent bb234a7c57
commit b7abc20399

View file

@ -17,6 +17,7 @@ import {
WebGLRenderer WebGLRenderer
} from "three"; } from "three";
import {Emitter, stream} from "lstream"; import {Emitter, stream} from "lstream";
import {Camera} from "three/src/cameras/Camera";
export default class SceneSetUp { export default class SceneSetUp {
workingSphere: number; workingSphere: number;
@ -25,7 +26,7 @@ export default class SceneSetUp {
rootGroup: Object3D; rootGroup: Object3D;
oCamera: OrthographicCamera; oCamera: OrthographicCamera;
pCamera: PerspectiveCamera; pCamera: PerspectiveCamera;
camera: PerspectiveCamera; camera: Camera;
light: DirectionalLight; light: DirectionalLight;
renderer: WebGLRenderer; renderer: WebGLRenderer;
private _prevContainerWidth: number; private _prevContainerWidth: number;
@ -83,7 +84,7 @@ export default class SceneSetUp {
this.createOrthographicCamera(); this.createOrthographicCamera();
this.createPerspectiveCamera(); this.createPerspectiveCamera();
this.camera = this.pCamera; this.camera = this.oCamera;
this.light = new DirectionalLight( 0xffffff ); this.light = new DirectionalLight( 0xffffff );
this.light.position.set( 10, 10, 10 ); this.light.position.set( 10, 10, 10 );