Skip to content

Commit

Permalink
Mad science scene
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsturges committed Nov 17, 2024
1 parent 20723be commit 1377f5b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/scenes/mad-science.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@
flask.scale.set(0.25, 0.25, 0.25);
flask.position.set(-1, 3.3, -1);
scene.add(flask);
const bubbleEffect = new BubblingEffect();
bubbleEffect.position.set(-1, 3.3, -1);
bubbleEffect.scale.set(0.25, 0.25, 0.25);
scene.add(bubbleEffect);
const bubblingEffect = new BubblingEffect();
bubblingEffect.position.set(-1, 3.3, -1);
bubblingEffect.scale.set(0.25, 0.25, 0.25);
scene.add(bubblingEffect);

const mortarAndPestle = new MortarAndPestle();
mortarAndPestle.scale.set(0.15, 0.15, 0.15);
Expand Down Expand Up @@ -109,6 +109,7 @@
renderer.setAnimationLoop(() => {
renderer.render(scene, camera);
controls.update();
bubblingEffect.update();
});

window.addEventListener("resize", () => {
Expand Down

0 comments on commit 1377f5b

Please sign in to comment.