hide scene background when playing video

This commit is contained in:
2026-01-28 17:20:39 +02:00
parent 21010376a1
commit 9cb05babe9
3 changed files with 15 additions and 13 deletions
+6 -10
View File
@@ -594,16 +594,12 @@ class GameEngine extends THREE.EventDispatcher{
this.ambientSound.play();
}
showBackground(show){
if (show){
this.motionQueue.add({
o: this.scene,
a: { backgroundIntensity: 1},
t: 15
})
}else{
this.scene.backgroundIntensity = 0;
}
showBackground(show, t = 1){
this.motionQueue.add({
o: this.scene,
a: { backgroundIntensity: show ? 1 : 0},
t
})
}
static textureLoader = new THREE.TextureLoader();