three
Version:
JavaScript 3D library
22 lines (11 loc) • 299 B
JavaScript
import Sampler from '../Sampler.js';
class NodeSampler extends Sampler {
constructor( name, textureNode ) {
super( name, textureNode ? textureNode.value : null );
this.textureNode = textureNode;
}
update() {
this.texture = this.textureNode.value;
}
}
export default NodeSampler;