Newer
Older
HuangJiPC / public / static / three / examples / jsm / renderers / webgl / nodes / SlotNode.js
@zhangdeliang zhangdeliang on 21 Jun 383 bytes update
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;