Skip to main content

<pc-splat>

The <pc-splat> tag is used to define a splat 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 splat component casts shadows
enabledBoolean"true"Enabled state of the component

Example

JavaScript Interface

You can programmatically create and manipulate <pc-splat> elements using the SplatComponentElement API.