Skip to content

Commit

Permalink
Graveyard scene
Browse files Browse the repository at this point in the history
Leaf effect
  • Loading branch information
jasonsturges committed Nov 17, 2024
1 parent 5cc183c commit 3cbe0af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/scenes/graveyard.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
CrossHeadstone,
FenceColumn,
Lantern,
LeafEffect,
Mausoleum,
Moon,
ObeliskHeadstone,
Expand Down Expand Up @@ -162,6 +163,10 @@
moon.position.set(9, 15, -45); // Adjust position as desired
scene.add(moon);

// Leaf effect
const leafEffect = new LeafEffect();
scene.add(leafEffect);

// Lighting
const spotlight = new THREE.SpotLight(0x23adf5, 100, 10, Math.PI / 8);
spotlight.position.set(0, 9, -15);
Expand Down Expand Up @@ -198,6 +203,7 @@
renderer.setAnimationLoop(() => {
renderer.render(scene, camera);
controls.update();
leafEffect.update();
});

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

0 comments on commit 3cbe0af

Please sign in to comment.