WebGPUNodeSampler.js 304 B

123456789101112131415161718192021
  1. import WebGPUSampler from '../WebGPUSampler.js';
  2. class WebGPUNodeSampler extends WebGPUSampler {
  3. constructor( name, textureNode ) {
  4. super( name, textureNode.value );
  5. this.textureNode = textureNode;
  6. }
  7. getTexture() {
  8. return this.textureNode.value;
  9. }
  10. }
  11. export default WebGPUNodeSampler;