Feature: TV screen CRT has a warm up and power down sequence

This commit is contained in:
Dejvino
2025-11-17 14:38:06 +01:00
parent 1a7b93bc7c
commit 293834b704
5 changed files with 99 additions and 10 deletions
+9
View File
@@ -8,12 +8,21 @@ export function initState() {
scene: null,
camera: null,
renderer: null,
clock: new THREE.Clock(),
tvScreen: null,
videoTexture: null,
screenLight: null,
lampLightPoint: null,
lampLightSpot: null,
effectsManager: null,
screenEffect: {
active: false,
type: 0,
startTime: 0,
duration: 1000, // in ms
onComplete: null,
easing: (t) => t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t, // easeInOutQuad
},
// VCR Display
lastUpdateTime: -1,