Refactor: SceneFeature+Manager
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user