hide scene background when playing video
This commit is contained in:
+6
-10
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user