Feature: Picture frame with changing images
This commit is contained in:
@@ -147,6 +147,12 @@ function updateBooks() {
|
||||
}
|
||||
}
|
||||
|
||||
function updatePictureFrame() {
|
||||
state.pictureFrames.forEach((pictureFrame) => {
|
||||
pictureFrame.update();
|
||||
});
|
||||
}
|
||||
|
||||
// --- Animation Loop ---
|
||||
export function animate() {
|
||||
requestAnimationFrame(animate);
|
||||
@@ -159,6 +165,7 @@ export function animate() {
|
||||
updateVcr();
|
||||
updateBooks();
|
||||
updateDoor();
|
||||
updatePictureFrame();
|
||||
|
||||
// RENDER!
|
||||
state.renderer.render(state.scene, state.camera);
|
||||
|
||||
Reference in New Issue
Block a user