Use child mesh in SplatMesh to auto-inject SparkRenderer instead of monkey-patching (#158)

This commit is contained in:
Noeri Huisman
2025-09-15 23:54:50 +02:00
committed by GitHub
parent 350a677984
commit 0c07ee2fd4
5 changed files with 42 additions and 44 deletions
+1
View File
@@ -47,6 +47,7 @@
// Explicitly create a SparkRenderer in the scene to spawn new viewpoints
const spark = new SparkRenderer({ renderer });
scene.add(spark);
const splatURL = await getAssetFileURL("butterfly.spz");
const butterfly = new SplatMesh({ url: splatURL });