使用 3D Tiles 渲染点云时根据几何误差执行点衰减的选项。 Options for performing point attenuation based on geometric error when rendering point clouds using 3D Tiles.
| 名称 Name | 类型 Type | 说明 Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
可选 optional
具有以下属性的对象: Object with the following properties:
|
成员 Members
根据几何误差进行点衰减。 Perform point attenuation based on geometric error.
-
默认值: Default Value:
false
确定是否隐藏背面点。仅当数据包含法线时此选项才有效。 Determines whether back-facing points are hidden. This option works only if data has normals included.
-
默认值: Default Value:
false
数据集的平均基本分辨率(以米为单位)。当几何误差为 0 时,用于代替几何误差。如果未定义,将为每个几何误差为 0 的图块计算近似值。 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.
使用点衰减进行绘制时使用 Eye Dome 照明 需要支持 WebGL 1.0 中的 EXT_frag_depth、OES_texture_float 和 WEBGL_draw_buffers 扩展,否则 Eye Dome 照明将被忽略。 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.
-
默认值: Default Value:
true
眼顶照明的轮廓厚度 Thickness of contours from eye dome lighting
-
默认值: Default Value:
1.0
眼罩照明强度(表观对比度) Eye dome lighting strength (apparent contrast)
-
默认值: Default Value:
1.0
在计算衰减之前应用于几何误差的比例。 Scale to be applied to the geometric error before computing attenuation.
-
默认值: Default Value:
1.0
最大点衰减(以像素为单位)。如果未定义,将使用Cesium3DTileset的maximumScreenSpaceError。 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.
-
默认值: Default Value:
true
方法 Methods
确定是否支持点云着色。 Determines if point cloud shading is supported.
| 名称 Name | 类型 Type | 说明 Description |
|---|---|---|
scene |
Scene | 现场。 The scene. |
返回: Returns:
true 是否支持点云着色;否则,返回 if point cloud shading is supported; otherwise, returns false
