generate method
dynamic
generate([
- dynamic builder,
- 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);
}