mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-06 16:31:03 +00:00
40 lines
583 B
JavaScript
40 lines
583 B
JavaScript
import { SampledTexture, SampledCubeTexture } from '../SampledTexture.js';
|
|
|
|
class NodeSampledTexture extends SampledTexture {
|
|
|
|
constructor( name, textureNode ) {
|
|
|
|
super( name, textureNode.value );
|
|
|
|
this.textureNode = textureNode;
|
|
|
|
}
|
|
|
|
getTexture() {
|
|
|
|
return this.textureNode.value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class NodeSampledCubeTexture extends SampledCubeTexture {
|
|
|
|
constructor( name, textureNode ) {
|
|
|
|
super( name, textureNode.value );
|
|
|
|
this.textureNode = textureNode;
|
|
|
|
}
|
|
|
|
getTexture() {
|
|
|
|
return this.textureNode.value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export { NodeSampledTexture, NodeSampledCubeTexture };
|