Feature: TV screen CRT has a warm up and power down sequence
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user