mirror of
https://github.com/storytold/spark.git
synced 2026-10-13 23:52:44 +00:00
Use child mesh in SplatMesh to auto-inject SparkRenderer instead of monkey-patching (#158)
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user