getNodeType method

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

Implementation

getNodeType([builder, output]) {
  var method = this.method;

  if (method == MathNode.LENGTH ||
      method == MathNode.DISTANCE ||
      method == MathNode.DOT) {
    return 'float';
  } else if (method == MathNode.CROSS) {
    return 'vec3';
  } else {
    return this.getInputType(builder);
  }
}