updateMatrixState method
dynamic
updateMatrixState()
- Update camera and gizmos state
Implementation
updateMatrixState() {
//update camera and gizmos state
this._cameraMatrixState.copy(this.camera.matrix);
this._gizmoMatrixState.copy(this._gizmos.matrix);
if (this.camera is OrthographicCamera) {
this._cameraProjectionState.copy(this.camera.projectionMatrix);
this.camera.updateProjectionMatrix();
this._zoomState = this.camera.zoom;
} else if (this.camera is PerspectiveCamera) {
this._fovState = this.camera.fov;
}
}