PointCloudShading

new Cesium.PointCloudShading(options)

Options for performing point attenuation based on geometric error when rendering point clouds using 3D Tiles.
参数名称 类型 描述信息
options object 可选 Object with the following properties:
参数名称 类型 默认值 描述信息
attenuation boolean false 可选 Perform point attenuation based on geometric error.
geometricErrorScale number 1.0 可选 Scale to be applied to each tile's geometric error.
maximumAttenuation number 可选 Maximum attenuation in pixels. Defaults to the Cesium3DTileset's maximumScreenSpaceError.
baseResolution number 可选 Average base resolution for the dataset in meters. Substitute for Geometric Error when not available.
eyeDomeLighting boolean true 可选 When true, use eye dome lighting when drawing with point attenuation.
eyeDomeLightingStrength number 1.0 可选 Increasing this value increases contrast on slopes and edges.
eyeDomeLightingRadius number 1.0 可选 Increase the thickness of contours from eye dome lighting.
backFaceCulling boolean false 可选 Determines whether back-facing points are hidden. This option works only if data has normals included.
normalShading boolean true 可选 Determines whether a point cloud that contains normals is shaded by the scene's light source.

成员(属性)

Perform point attenuation based on geometric error.
默认值: false
Determines whether back-facing points are hidden. This option works only if data has normals included.
默认值: false
Average base resolution for the dataset in meters. Used in place of geometric error when geometric error is 0. If undefined, an approximation will be computed for each tile that has geometric error of 0.
Use eye dome lighting when drawing with point attenuation Requires support for EXT_frag_depth, OES_texture_float, and WEBGL_draw_buffers extensions in WebGL 1.0, otherwise eye dome lighting is ignored.
默认值: true

eyeDomeLightingRadius : number

Thickness of contours from eye dome lighting
默认值: 1.0

eyeDomeLightingStrength : number

Eye dome lighting strength (apparent contrast)
默认值: 1.0

geometricErrorScale : number

Scale to be applied to the geometric error before computing attenuation.
默认值: 1.0

maximumAttenuation : number

Maximum point attenuation in pixels. If undefined, the Cesium3DTileset's maximumScreenSpaceError will be used.
Determines whether a point cloud that contains normals is shaded by the scene's light source.
默认值: true

方法

static Cesium.PointCloudShading.isSupported(scene)boolean

Determines if point cloud shading is supported.
参数名称 类型 描述信息
scene Scene The scene.
返回值:
true if point cloud shading is supported; otherwise, returns false