大屏添加cesium

This commit is contained in:
2025-10-11 09:56:33 +08:00
parent fd4e05a802
commit 5274168aa0
1823 changed files with 760471 additions and 112 deletions

View File

@ -0,0 +1,35 @@
import FogNode from './FogNode.js';
import { smoothstep } from '../math/MathNode.js';
import { addNodeClass } from '../core/Node.js';
import { addNodeElement, nodeProxy } from '../shadernode/ShaderNode.js';
class FogRangeNode extends FogNode {
constructor( colorNode, nearNode, farNode ) {
super( colorNode );
this.isFogRangeNode = true;
this.nearNode = nearNode;
this.farNode = farNode;
}
setup( builder ) {
const viewZ = this.getViewZNode( builder );
return smoothstep( this.nearNode, this.farNode, viewZ );
}
}
export default FogRangeNode;
export const rangeFog = nodeProxy( FogRangeNode );
addNodeElement( 'rangeFog', rangeFog );
addNodeClass( 'FogRangeNode', FogRangeNode );