update method

dynamic update([
  1. dynamic frame
])
override

Implementation

update([frame]) {
  var camera = frame.camera;
  var inputNode = this._inputNode;
  var scope = this.scope;

  if (scope == CameraNode.PROJECTION_MATRIX) {
    inputNode.value = camera.projectionMatrix;
  } else if (scope == CameraNode.VIEW_MATRIX) {
    inputNode.value = camera.matrixWorldInverse;
  } else {
    super.update(frame);
  }
}