Accueil / npm / three@0.152.1 / examples / jsm / renderers / webgpu / nodes / WebGPUNodeSampler.js
WebGPUNodeSampler.js
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;