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