LCCObject::setMinSplatSize
Sets the culling threshold for small Gaussian splats.
Each Gaussian splat is projected onto the screen as an ellipse. When the longest semi-axis of that ellipse is shorter than size pixels, the splat is skipped in the vertex shader and is not drawn. Larger values cull more splats, which reduces fill and overdraw cost at the expense of fine detail. Set it to 0 to disable culling.
Version Requirement
SDK v0.6.6+
Engine Support
Three.js / CesiumJS
API
LCCObject::setMinSplatSize(size: number): void
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
size | number | Yes | 0.3 on desktop, 1.0 on mobile | Culling threshold in pixels. Gaussian splats whose projected ellipse has a longest semi-axis smaller than this value are not drawn. 0 disables culling. |
Return Value
void
Usage Example
// Cull more splats on low-end devices
lccObject.setMinSplatSize(1);
// Disable culling
lccObject.setMinSplatSize(0);
Notes
- Negative values are treated as
0. Non-finite values (NaN,Infinity) are ignored, and the current setting is kept. - This method only affects drawing. LOD selection and sorting are unchanged.
- On low-performance devices, increase the threshold to improve the frame rate. When fine detail matters, decrease it or set it to
0.
Related APIs
LCCObject::setMaxSplats()— Set the maximum number of rendered Gaussian splatsLCCObject::setMipFilter()— Enable or disable Mip Filter