Skip to main content

<pc-gsplat>

The <pc-gsplat> tag is used to define a gsplat component for rendering 3D Gaussian Splats.

When rendering splat-based scenes, it is recommended to set antialias and high-resolution on your <pc-app> tag to false for best performance.

Usage

Attributes

AttributeTypeDefaultDescription
assetString-Gaussian splat asset ID (must reference a gsplat type asset)
cast-shadowsFlag-Whether the gsplat component casts shadows
enabledBoolean"true"Enabled state of the component
lod-base-distanceNumber"5"Distance for the first LOD transition (LOD 0 to LOD 1). Splats closer than this use the highest-quality LOD. Minimum 0.1. Only affects assets that contain LOD levels.
lod-multiplierNumber"3"Multiplier between successive LOD distance thresholds, forming a geometric progression. Higher values switch to coarser LODs sooner. Minimum 1.2. Only affects assets that contain LOD levels.

Example

JavaScript Interface

You can programmatically create and manipulate <pc-gsplat> elements using the GSplatComponentElement API.