This commit is contained in:
2024-10-01 20:39:17 +02:00
parent 375d47397e
commit 1b3f837bf0
2 changed files with 52 additions and 49 deletions

View File

@@ -92,12 +92,12 @@ class InstancedMino extends THREE.InstancedMesh {
set theme(theme) {
this._theme = theme
Mino.meshes.material = Mino.materials[theme]
this.material = Mino.materials[theme]
if (theme == "Rétro") {
this.resetColor()
this.update = Mino.meshes.updateOffset
this.update = this.updateOffset
} else {
this.update = Mino.meshes.updateColor
this.update = this.updateColor
}
}