new Cesium.PointCloudShading(options)

基于几何误差在渲染时进行点减的选项 点云使用三维梯形.
Name Type Description
options object optional 下列属性的对象 :
Name Type Default Description
attenuation boolean false optional
geometricErrorScale number 1.0 optional 缩放将应用于每块瓦的几何误差.
maximumAttenuation number optional 以像素计的最大衰减值 。 默认为 NT 0 最大ScreenSpaceError.
baseResolution number optional 数据集以米计的平均基分辨率. 无法使用几何错误的替换 .
eyeDomeLighting boolean true optional When true, use eye dome lighting when drawing with point attenuation.
eyeDomeLightingStrength number 1.0 optional 增加这个数值会增加坡度和边缘的对比度.
eyeDomeLightingRadius number 1.0 optional 从眼穹顶照明增加轮廓厚度.
backFaceCulling boolean false optional Determines whether back-facing points are hidden. This option works only if data has normals included.
normalShading boolean true optional Determines whether a point cloud that contains normals is shaded by the scene's light source.

Members

attenuation : boolean

根据几何误差进行点减.
Default Value: false

backFaceCulling : boolean

确定是否隐藏后补位点 . 此选项只有在包含正常数据的情况下才有效 .
Default Value: false

baseResolution : number

数据集以米计的平均基分辨率. 当几何错误为 0时, 用于代替几何错误 . 如果未定义,将计算每块几何误差为0的近似值.

eyeDomeLighting : boolean

以点减法绘图时使用眼穹照明 需要支持 EXT frag 深度, OSS texture float, 和 WEBGL draw buffers 的扩展 , 否则眼睛穹顶的照明被忽略.
Default Value: true

eyeDomeLightingRadius : number

圆顶照明的轮廓厚度
Default Value: 1.0

eyeDomeLightingStrength : number

Eye dome lighting strength (apparent contrast)
Default Value: 1.0

geometricErrorScale : number

缩放在计算衰减前应用到几何错误.
Default Value: 1.0

maximumAttenuation : number

在像素中最大点衰减. 如果未定义,则将使用 NT++0 最大ScreenSpaceError.

normalShading : boolean

确定含有常态的点云是否被场景光源遮蔽.
Default Value: true

Methods

static Cesium.PointCloudShading.isSupported(scene)boolean

确定是否支持点云阴影.
Name Type Description
scene Scene The scene.
Returns:
如果支持点云阴影, 则返回 NT % 2 假 % 3 %
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.