Cesium-Examples/libs/three/examples/jsm/renderers/common/nodes/NodeSampler.js

22 lines
274 B
JavaScript
Raw Normal View History

2025-03-11 08:25:45 +00:00
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;