UNPKG

three

Version:

JavaScript 3D library

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