Function createProceduralGaussianSplattingMesh
-
createProceduralGaussianSplattingMesh(
scene: SceneContext,
name: string,
splatCount: number,
fragments?: readonly GsShaderFragment[],
): GaussianSplattingMeshParameters
- scene: SceneContext
Scene that owns and renders the mesh.
- name: string
Mesh name.
- splatCount: number
Number of splats to allocate.
Optionalfragments: readonly GsShaderFragment[]Optional custom shader fragments for the splat material.
Returns GaussianSplattingMesh
The created, scene-attached Gaussian Splatting mesh.
- scene: SceneContext
Creates a Gaussian Splatting mesh with
splatCountplaceholder splats and attaches it to the scene's render pipeline. Useful for procedurally filling splat data later.