Plugin that applies display settings and eye dome lighting to loaded point content. Eye dome lighting renders the points to a depth target first so each point can compare itself against its neighbors as it rasterizes, shading silhouettes and creases.
All the options below can be adjusted after construction.
On this page
Methods
new PointCloudEffectsPlugin(
options?: {
// Shape of the point sprites.
pointShape: 'square' | 'round' | 'sphere' = 'round',
// Smallest point size in pixels.
minPointSize: number = 2,
// Eye dome lighting falloff rate. Zero disables the effect and skips its depth pre-pass.
edlStrength: number = 0,
// Radius of the eye dome lighting neighbor ring in css pixels, scaled by the renderer pixel ratio so the effect looks the same on every display.
edlRadius: number = 1.4,
// Color points by the node they are sized by, that node's depth, or the tile they came from.
debugColorMode: 'none' | 'node' | 'depth' | 'tile' = 'none'
}
)