UNPKG

three

Version:

JavaScript 3D library

22 lines (11 loc) 274 B
import Sampler from '../Sampler.js'; class NodeSampler extends Sampler { constructor( name, textureNode ) { super( name, textureNode.value ); this.textureNode = textureNode; } getTexture() { return this.textureNode.value; } } export default NodeSampler;