22 lines
304 B
JavaScript
22 lines
304 B
JavaScript
|
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;
|