mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-07 00:37:30 +00:00
22 lines
274 B
JavaScript
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;
|