diff --git a/jsm/TetraScene.js b/jsm/TetraScene.js index 1d33d46..0e0b426 100644 --- a/jsm/TetraScene.js +++ b/jsm/TetraScene.js @@ -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 diff --git a/jsm/Tetrominoes.js b/jsm/Tetrominoes.js index 2139386..4aafafc 100644 --- a/jsm/Tetrominoes.js +++ b/jsm/Tetrominoes.js @@ -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] } diff --git a/jsm/Vortex.js b/jsm/Vortex.js index 7880a8a..2e0926d 100644 --- a/jsm/Vortex.js +++ b/jsm/Vortex.js @@ -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) {