mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-08 01:13:27 +01:00
orthographic mode by default
This commit is contained in:
parent
bb234a7c57
commit
b7abc20399
1 changed files with 3 additions and 2 deletions
|
|
@ -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 );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue