PointCloudShading

new SuperMap3D.PointCloudShading(options)

Option to perform point falloff based on geometric error when rendering point clouds with 3D Tiles.
Name Type Description
options Object optional object with the following properties:
Name Type Default Description
attenuation Boolean false optional Point falloff based on geometric error.
geometricErrorScale Number 1.0 optional Scale The geometric error applied to each tile.
maximumAttenuation Number optional Maximum attenuation in pixels. Defaults to maximumScreenSpaceError for Cesium3DTileset.
baseResolution Number optional Average base resolution of the dataset in meters. Substitutes geometric errors when not available.
eyeDomeLighting Boolean true optional When true, uses dome lighting when painting with point falloff.
eyeDomeLightingStrength Number 1.0 optional Increasing this value increases the contrast of slopes and edges.
eyeDomeLightingRadius Number 1.0 optional Increased profile thickness for eye top lighting.
backFaceCulling Boolean false optional Determines whether to hide back points. This option is only valid if the data contains normals.
normalShading Boolean true optional Determines whether the point cloud containing normals is shaded by the scene's light source.

Members

attenuation : Boolean

Point falloff based on geometric error.
Default Value: false

backFaceCulling : Boolean

Determines whether to hide back points. This option is only valid if the data contains normals.
Default Value: false

baseResolution : Number

Average base resolution of the dataset in meters. Used in place of the geometric error when the geometric error is 0. If undefined, an approximation will be computed for each tile with a geometric error of 0.

eyeDomeLighting : Boolean

Using eye dome lighting when drawing with point attenuation Requires support for the EXT_frag_depth, OES_texture_float and WEBGL_draw_buffers extensions in WebGL 1.0, otherwise eye dome lighting is ignored.
Default Value: true

eyeDomeLightingRadius : Number

Outline thickness of the eye roof lighting.
Default Value: 1.0

eyeDomeLightingStrength : Number

Illumination intensity at the top of the eye (apparent contrast).
Default Value: 1.0

geometricErrorScale : Number

The scale to apply to the geometric error before calculating the falloff.
Default Value: 1.0

maximumAttenuation : Number

Maximum point falloff in pixels. If not defined, will use Cesium3DTileset's maximumScreenSpaceError 。

normalShading : Boolean

Determines whether the point cloud containing normals is shaded by the scene's light source.
Default Value: true

Methods

staticSuperMap3D.PointCloudShading.isSupported(scene)Boolean

Determines whether point cloud shading is supported.
Name Type Description
scene Scene scene
Returns:
true if point cloud shading is supported; otherwise, returns false.