tweaks
This commit is contained in:
parent
935343d301
commit
c9b242c9c2
BIN
audio/benevolence.m4a
Normal file
BIN
audio/benevolence.m4a
Normal file
Binary file not shown.
BIN
images/fond_etoile.gif
Normal file
BIN
images/fond_etoile.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
@ -170,9 +170,9 @@ export class TetraGUI extends GUI {
|
|||||||
envMap: environnement,
|
envMap: environnement,
|
||||||
side: THREE.DoubleSide,
|
side: THREE.DoubleSide,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
opacity: 0.6,
|
opacity: 0.8,
|
||||||
roughness: 0.02,
|
roughness: 0.2,
|
||||||
metalness: 0.95,
|
metalness: 0.9,
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
case "MeshPhysicalMaterial":
|
case "MeshPhysicalMaterial":
|
||||||
|
@ -18,7 +18,7 @@ export class TetraScene extends THREE.Scene {
|
|||||||
this.add(this.ambientLight)
|
this.add(this.ambientLight)
|
||||||
|
|
||||||
this.directionalLight = new THREE.DirectionalLight(0xffffff, 2)
|
this.directionalLight = new THREE.DirectionalLight(0xffffff, 2)
|
||||||
this.directionalLight.position.set(5, 0, 20)
|
this.directionalLight.position.set(5, -20, 20)
|
||||||
this.add(this.directionalLight)
|
this.add(this.directionalLight)
|
||||||
|
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ export class TetraScene extends THREE.Scene {
|
|||||||
const audioLoader = new THREE.AudioLoader(this.loadingManager)
|
const audioLoader = new THREE.AudioLoader(this.loadingManager)
|
||||||
|
|
||||||
this.music = new THREE.Audio(listener)
|
this.music = new THREE.Audio(listener)
|
||||||
audioLoader.load('audio/Tetris_T-Spin_OC_ReMix.mp3', function( buffer ) {
|
audioLoader.load('audio/benevolence.m4a', function( buffer ) {
|
||||||
this.music.setBuffer(buffer)
|
this.music.setBuffer(buffer)
|
||||||
this.music.setLoop(true)
|
this.music.setLoop(true)
|
||||||
this.music.setVolume(settings.musicVolume/100)
|
this.music.setVolume(settings.musicVolume/100)
|
||||||
|
@ -120,9 +120,9 @@ class Mino extends THREE.Object3D {
|
|||||||
envMap: environnement,
|
envMap: environnement,
|
||||||
side: THREE.DoubleSide,
|
side: THREE.DoubleSide,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
opacity: 0.6,
|
opacity: 0.8,
|
||||||
roughness: 0.2,
|
roughness: 0.2,
|
||||||
metalness: 0.95,
|
metalness: 0.9,
|
||||||
})
|
})
|
||||||
this.mesh = new InstancedMino(minoGeometry, minoMaterial, 2*ROWS*COLUMNS)
|
this.mesh = new InstancedMino(minoGeometry, minoMaterial, 2*ROWS*COLUMNS)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user