Refactor: SceneFeature+Manager

This commit is contained in:
Dejvino
2025-11-21 19:39:37 +01:00
parent 1d4e428bf9
commit bc961119b6
5 changed files with 66 additions and 12 deletions
+3
View File
@@ -1,6 +1,7 @@
import * as THREE from 'three';
import { state } from '../state.js';
import { updateScreenEffect } from '../scene/magic-mirror.js'
import sceneFeatureManager from '../scene/SceneFeatureManager.js';
function updateCamera() {
const globalTime = Date.now() * 0.0001;
@@ -69,6 +70,8 @@ function updateVideo() {
export function animate() {
requestAnimationFrame(animate);
const deltaTime = 1;
sceneFeatureManager.update(deltaTime);
state.effectsManager.update();
updateCamera();
updateScreenLight();