RETRO THEME

This commit is contained in:
2024-09-26 01:30:31 +02:00
parent 8ed998f255
commit 7f6795109b
15 changed files with 332 additions and 175 deletions

View File

@@ -44,6 +44,24 @@ export class TetraScene extends THREE.Scene {
}.bind(this))
}
set theme(theme) {
switch (theme) {
case "Plasma":
this.ambientLight.intensity = 0.6
this.directionalLight.intensity = 5
break
case "Espace":
this.ambientLight.intensity = 20
this.directionalLight.intensity = 10
break
case "Rétro":
this.ambientLight.intensity = 1
this.directionalLight.intensity = 10
break
}
this.vortex.theme = theme
}
update(delta) {
this.vortex.update(delta)
}