You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
383 B
27 lines
383 B
2 years ago
|
import { Node } from 'three/nodes';
|
||
|
|
||
|
class SlotNode extends Node {
|
||
|
|
||
|
constructor( params ) {
|
||
|
|
||
|
super( params.nodeType );
|
||
|
|
||
|
this.node = null;
|
||
|
this.source = null;
|
||
|
this.target = null;
|
||
|
this.inclusionType = 'replace';
|
||
|
|
||
|
Object.assign( this, params );
|
||
|
|
||
|
}
|
||
|
|
||
|
generate( builder ) {
|
||
|
|
||
|
return this.node.build( builder, this.getNodeType( builder ) );
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default SlotNode;
|