Newer
Older
HuangJiPC / public / static / three / examples / jsm / nodes / accessors / BufferNode.js
@zhangdeliang zhangdeliang on 21 Jun 362 bytes update
import UniformNode from '../core/UniformNode.js';

class BufferNode extends UniformNode {

	constructor( value, bufferType, bufferCount = 0 ) {

		super( value, bufferType );

		this.isBufferNode = true;

		this.bufferType = bufferType;
		this.bufferCount = bufferCount;

	}

	getInputType( /*builder*/ ) {

		return 'buffer';

	}

}

export default BufferNode;