mirror of
https://github.com/storytold/spark.git
synced 2026-10-16 00:03:01 +00:00
Update SplatLoader to handle progress updates, both for main file and any extra files, aggregating totals. Misc. improvements to examples. (#112)
This commit is contained in:
committed by
GitHub
parent
0cfa39df76
commit
bf10efcab0
@@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
@@ -47,8 +48,9 @@
|
||||
const NUM_ROBOTS = 5;
|
||||
const robots = [];
|
||||
const splatURL = await getAssetFileURL("robot-head.spz");
|
||||
const packedSplats = new PackedSplats({ url: splatURL });
|
||||
for (let i = 0; i < NUM_ROBOTS; i++) {
|
||||
const robot = new SplatMesh({ url: splatURL });
|
||||
const robot = new SplatMesh({ packedSplats });
|
||||
robot.rotation.x = Math.PI;
|
||||
robot.scale.setScalar(0.2);
|
||||
robot.position.set(0, 0, i);
|
||||
|
||||
Reference in New Issue
Block a user