Newer
Older
HuangJiPC / public / static / three / examples / jsm / renderers / webgpu / nodes / WebGPUNodeSampler.js
@zhangdeliang zhangdeliang on 21 Jun 304 bytes update
import WebGPUSampler from '../WebGPUSampler.js';

class WebGPUNodeSampler extends WebGPUSampler {

	constructor( name, textureNode ) {

		super( name, textureNode.value );

		this.textureNode = textureNode;

	}

	getTexture() {

		return this.textureNode.value;

	}

}

export default WebGPUNodeSampler;