PointCloudShading

new Cesium.PointCloudShading(options)

在使用 3D Tiles 渲染点云时,基于几何误差执行点衰减的选项。
Name Type Description
options object optional Object with the following properties:
Name Type Default Description
attenuation boolean false optional 基于几何误差执行点衰减。
geometricErrorScale number 1.0 optional 应用于每个瓦片几何误差的缩放比例。
maximumAttenuation number optional 最大衰减(单位:像素)。默认值为 Cesium3DTileset 的 maximumScreenSpaceError。
baseResolution number optional 数据集的平均基础分辨率(单位:米)。在几何误差不可用时作为替代。
eyeDomeLighting boolean true optional 为 true 时,在使用点衰减绘制时采用 Eye Dome Lighting(眼球穹顶光照)。
eyeDomeLightingStrength number 1.0 optional 增大该值会提高斜坡和边缘的对比度。
eyeDomeLightingRadius number 1.0 optional 增大由 Eye Dome Lighting 产生的等高线厚度。
backFaceCulling boolean false optional 决定是否隐藏背面点。该选项仅在数据包含法向时才生效。
normalShading boolean true optional 决定是否由场景的光源对包含法向的点云进行着色。

Members

基于几何误差执行点衰减。
Default Value: false
决定是否隐藏背面点。 该选项仅在数据包含法向时才生效。
Default Value: false
数据集的平均基础分辨率(单位:米)。 当几何误差为 0 时用于替代几何误差。 如果未定义,将为每个几何误差为 0 的瓦片计算一个近似值。
在使用点衰减绘制时采用 Eye Dome Lighting。 在 WebGL 1.0 中需要支持 EXT_frag_depth、OES_texture_float 和 WEBGL_draw_buffers 扩展, 否则将忽略 Eye Dome Lighting。
Default Value: true

eyeDomeLightingRadius : number

由 Eye Dome Lighting 产生的等高线厚度
Default Value: 1.0

eyeDomeLightingStrength : number

Eye Dome Lighting 强度(表观对比度)
Default Value: 1.0

geometricErrorScale : number

在计算衰减之前应用于几何误差的缩放比例。
Default Value: 1.0

maximumAttenuation : number

最大点衰减(单位:像素)。如果未定义,将使用 Cesium3DTileset 的 maximumScreenSpaceError。
决定是否由场景的光源对包含法向的点云进行着色。
Default Value: true

Methods

static Cesium.PointCloudShading.isSupported(scene)boolean

确定是否支持点云着色。
Name Type Description
scene Scene 场景。
Returns:
如果支持点云着色则返回 true,否则返回 false
需要帮助?获取答案的最快方式是在 Cesium 论坛 上向社区和团队提问。