Skip to content

Commit dc731f9

Browse files
committed
chore: build examples
1 parent 52eeef4 commit dc731f9

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

examples/assets/rebars.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/fragments/src/FragmentsModels/examples/Rebars/example.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,11 @@ world.scene.three.add(axesHelper);
6565

6666
// prettier-ignore
6767
const workerUrl = "https://thatopen.github.io/engine_fragment/resources/worker.mjs";
68-
const fetchedWorker = await fetch(workerUrl);
69-
const workerBytes = await fetchedWorker.arrayBuffer();
70-
const localWorkerUrl = URL.createObjectURL(new Blob([workerBytes]));
7168
// const workerUrl = "../../dist/Worker/worker.mjs";
72-
const fragments = new FRAGS.FragmentsModels(localWorkerUrl);
69+
const fragments = new FRAGS.FragmentsModels(workerUrl);
7370

7471
world.camera.controls.addEventListener("control", () => fragments.update());
7572

76-
console.log("hey");
77-
7873
fragments.models.list.onItemSet.add(({ value: model }) => {
7974
model.tiles.onItemSet.add(({ value: mesh }) => {
8075
if ("isMesh" in mesh) {

0 commit comments

Comments
 (0)