themes fixes

This commit is contained in:
Adrien MALINGREY 2024-09-26 13:52:41 +02:00
parent cae3dc9af5
commit abf562fd89
3 changed files with 5 additions and 7 deletions

View File

@ -16,9 +16,9 @@ export class TetraScene extends THREE.Scene {
this.add(this.ambientLight)
this.directionalLight = new THREE.DirectionalLight(0xffffff, 5)
this.directionalLight.position.set(5, -20, 20)
this.add(this.directionalLight)
this.theme = settings.theme
/* Sounds */
this.music = music

View File

@ -136,7 +136,7 @@ class Mino extends THREE.Object3D {
envMap: environment,
side: THREE.DoubleSide,
transparent: true,
opacity: 0.7,
opacity: 0.8,
roughness: 0.48,
metalness: 0.67,
}),
@ -145,8 +145,8 @@ class Mino extends THREE.Object3D {
side: THREE.DoubleSide,
transparent: true,
opacity: 0.8,
roughness: 0.05,
metalness: 0.997,
roughness: 0.1,
metalness: 0.99,
}),
Rétro: [sideMaterial, sideMaterial, sideMaterial, sideMaterial, sideMaterial, sideMaterial]
}

View File

@ -24,7 +24,6 @@ export class Vortex extends THREE.Group {
blending: THREE.AdditiveBlending,
})
)
this.darkCylinder.position.y = -100
this.add(this.darkCylinder)
this.colorFullCylinder = new THREE.Mesh(
@ -34,10 +33,9 @@ export class Vortex extends THREE.Group {
blending: THREE.AdditiveBlending,
})
)
this.colorFullCylinder.position.y = -100
this.add(this.colorFullCylinder)
this.position.set(5, 10, -10)
this.position.set(5, 100, -10)
}
set theme(theme) {