diff --git a/app.js b/app.js index 95676710..95d03e4f 100644 --- a/app.js +++ b/app.js @@ -4,6 +4,7 @@ import { RenderPass } from 'three/addons/postprocessing/RenderPass.js'; import { UnrealBloomPass } from 'three/addons/postprocessing/UnrealBloomPass.js'; import { SMAAPass } from 'three/addons/postprocessing/SMAAPass.js'; import { SpatialMemory } from './nexus/components/spatial-memory.js'; +import { MemoryDecay } from './nexus/components/memory-decay.js'; import { MemoryOptimizer } from './nexus/components/memory-optimizer.js'; // ═══════════════════════════════════════════ @@ -709,6 +710,7 @@ async function init() { createAshStorm(); SpatialMemory.init(scene); SpatialMemory.setCamera(camera); + MemoryDecay.init(SpatialMemory); updateLoad(90); loadSession(); @@ -2868,6 +2870,7 @@ function gameLoop() { // Project Mnemosyne - Memory Orb Animation if (typeof animateMemoryOrbs === 'function') { SpatialMemory.update(delta); + MemoryDecay.update(delta); animateMemoryOrbs(delta); }