From 3cbe0af60af751c8e3525ca345dd7cf165f18412 Mon Sep 17 00:00:00 2001 From: Jason Sturges Date: Sat, 16 Nov 2024 22:46:22 -0600 Subject: [PATCH] Graveyard scene Leaf effect --- examples/scenes/graveyard.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/scenes/graveyard.html b/examples/scenes/graveyard.html index 3e5857d..d4094e2 100644 --- a/examples/scenes/graveyard.html +++ b/examples/scenes/graveyard.html @@ -23,6 +23,7 @@ CrossHeadstone, FenceColumn, Lantern, + LeafEffect, Mausoleum, Moon, ObeliskHeadstone, @@ -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); @@ -198,6 +203,7 @@ renderer.setAnimationLoop(() => { renderer.render(scene, camera); controls.update(); + leafEffect.update(); }); window.addEventListener("resize", () => {