Refactoring: move effects to a manager, chunk animate loop contents
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user