getNodeType method

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

Implementation

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

  if (scope == Object3DNode.WORLD_MATRIX ||
      scope == Object3DNode.VIEW_MATRIX) {
    return 'mat4';
  } else if (scope == Object3DNode.NORMAL_MATRIX) {
    return 'mat3';
  } else if (scope == Object3DNode.POSITION ||
      scope == Object3DNode.VIEW_POSITION) {
    return 'vec3';
  }
}