Home Reference Source

main/model/core/Camera2D.js

import { Three } from 'link/Three';

export class Camera2D {

    constructor(id, left, right, top, bottom, near, far) {
        this.id = id;
        this.cam = new Three.OrthographicCamera(left, right, top, bottom, near, far);
        this.cam.position.set(right, bottom, far);
        this.sceneIds = new Set();
    }

}