diff --git a/app.js b/app.js index 46b6e0c1..f0ea76ca 100644 --- a/app.js +++ b/app.js @@ -714,6 +714,10 @@ async function init() { camera = new THREE.PerspectiveCamera(65, window.innerWidth / window.innerHeight, 0.1, 1000); camera.position.copy(playerPos); + // Initialize avatar and LOD systems + if (window.AvatarCustomization) window.AvatarCustomization.init(scene, camera); + if (window.LODSystem) window.LODSystem.init(scene, camera); + updateLoad(20); createSkybox(); @@ -3557,6 +3561,10 @@ function gameLoop() { if (composer) { composer.render(); } else { renderer.render(scene, camera); } + // Update avatar and LOD systems + if (window.AvatarCustomization && playerPos) window.AvatarCustomization.update(playerPos); + if (window.LODSystem && playerPos) window.LODSystem.update(playerPos); + updateAshStorm(delta, elapsed); // Project Mnemosyne - Memory Orb Animation diff --git a/index.html b/index.html index 0f487554..7a6a2a84 100644 --- a/index.html +++ b/index.html @@ -395,6 +395,8 @@ + +