3D-Demo/jsm/nodes/core/NodeFunction.js

23 lines
330 B
JavaScript
Raw Permalink Normal View History

2022-10-14 16:50:42 +08:00
class NodeFunction {
constructor( type, inputs, name = '', presicion = '' ) {
this.type = type;
this.inputs = inputs;
this.name = name;
this.presicion = presicion;
}
getCode( /*name = this.name*/ ) {
console.warn( 'Abstract function.' );
}
}
NodeFunction.isNodeFunction = true;
export default NodeFunction;