Feature: door randomly opens and closes
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import * as THREE from 'three';
|
||||
import { state } from '../state.js';
|
||||
import { updateVcrDisplay } from '../scene/vcr-display.js';
|
||||
import { updateDoor } from '../scene/door.js';
|
||||
import { state } from '../state.js';
|
||||
|
||||
|
||||
function updateCamera() {
|
||||
const globalTime = Date.now() * 0.00005;
|
||||
const lookAtTime = Date.now() * 0.00003;
|
||||
|
||||
const camAmplitude = 0.7;
|
||||
const camAmplitude = 0.5;
|
||||
const lookAmplitude = 0.05;
|
||||
|
||||
// Base Camera Position in front of the TV
|
||||
@@ -97,6 +98,7 @@ export function animate() {
|
||||
updateScreenLight();
|
||||
updateVideo();
|
||||
updateVcr();
|
||||
updateDoor();
|
||||
|
||||
// RENDER!
|
||||
state.renderer.render(state.scene, state.camera);
|
||||
|
||||
Reference in New Issue
Block a user