mirror of
https://github.com/storytold/spark.git
synced 2026-10-14 23:52:59 +00:00
Use child mesh in SplatMesh to auto-inject SparkRenderer instead of monkey-patching (#158)
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
|
||||
// Explicitly create a SparkRenderer to render environment maps
|
||||
const spark = new SparkRenderer({ renderer });
|
||||
scene.add(spark);
|
||||
|
||||
const splatURL = await getAssetFileURL("fireplace.spz");
|
||||
const packedSplats = new PackedSplats({ url: splatURL });
|
||||
|
||||
Reference in New Issue
Block a user