generate method

dynamic generate([
  1. dynamic builder,
  2. dynamic output
])
override

Implementation

generate([builder, output]) {
  var scope = this.scope;

  if (scope == Object3DNode.WORLD_MATRIX ||
      scope == Object3DNode.VIEW_MATRIX) {
    this._inputNode = new Matrix4Node();
  } else if (scope == Object3DNode.NORMAL_MATRIX) {
    this._inputNode = new Matrix3Node();
  } else if (scope == Object3DNode.POSITION ||
      scope == Object3DNode.VIEW_POSITION) {
    this._inputNode = new Vector3Node();
  }

  return this._inputNode.build(builder);
}