<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
- It must be a direct child of a
<pc-entity>
.
Attributes
Attribute | Type | Default | Description |
---|---|---|---|
asset | String | - | Gaussian splat asset ID (must reference a gsplat type asset) |
cast-shadows | Flag | - | Whether the splat component casts shadows |
enabled | Boolean | "true" | Enabled state of the component |
Example
JavaScript Interface
You can programmatically create and manipulate <pc-splat>
elements using the SplatComponentElement API.