Cesium-Examples/libs/three/examples/jsm/renderers/common/nodes/NodeSampler.js
2025-03-19 11:00:22 +08:00

22 lines
274 B
JavaScript

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;