Refactoring: move effects to a manager, chunk animate loop contents

This commit is contained in:
Dejvino
2025-11-13 21:45:11 +01:00
parent 043552f36c
commit 75c87c9d03
8 changed files with 215 additions and 248 deletions
+1 -4
View File
@@ -1,5 +1,5 @@
// --- Global Variables ---
let scene, camera, renderer, tvScreen, videoTexture, dust, screenLight, lampLightPoint, lampLightSpot;
let scene, camera, renderer, tvScreen, videoTexture, screenLight, lampLightPoint, lampLightSpot, effectsManager;
// VCR Display related variables
let simulatedPlaybackTime = 0;
@@ -23,9 +23,6 @@ const loadTapeButton = document.getElementById('loadTapeButton');
const loader = new THREE.TextureLoader();
const debugLight = false;
const FLIES_COUNT = 2; // Flies
const flies = [];
let landingSurfaces = []; // Array to hold floor and table for fly landings
const raycaster = new THREE.Raycaster();