Skip to content

NgtsOrthographicCamera

A responsive THREE.OrthographicCamera with the ability to set itself as the default camera.

Usage

import { NgtsOrthographicCamera } from 'angular-three-soba/cameras';
<ngt-canvas>
<ng-template canvasContent>
<ngts-orthographic-camera [options]="{ makeDefault: true }" />
</ng-template>
</ngt-canvas>

NgtsOrthographicCamera API is the same as NgtsPerspectiveCamera.

Options

options input accepts any properties from THREE.OrthographicCamera in addition to the following:

Properties

name type description
frames number how many frames to render the FBO, default to Infinity
resolution number the resolution of the FBO, default to 256
envMap THREE.Texture custom environment map that is temporarily set as the scene background
makeDefault boolean registers the camera as the system default, default to false
manual boolean makes the camera manual, default to false