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