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,
|
||||
side: THREE.DoubleSide,
|
||||
transparent: true,
|
||||
opacity: 0.6,
|
||||
roughness: 0.02,
|
||||
metalness: 0.95,
|
||||
opacity: 0.8,
|
||||
roughness: 0.2,
|
||||
metalness: 0.9,
|
||||
})
|
||||
break
|
||||
case "MeshPhysicalMaterial":
|
||||
|
@ -18,7 +18,7 @@ export class TetraScene extends THREE.Scene {
|
||||
this.add(this.ambientLight)
|
||||
|
||||
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)
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ export class TetraScene extends THREE.Scene {
|
||||
const audioLoader = new THREE.AudioLoader(this.loadingManager)
|
||||
|
||||
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.setLoop(true)
|
||||
this.music.setVolume(settings.musicVolume/100)
|
||||
|
@ -120,9 +120,9 @@ class Mino extends THREE.Object3D {
|
||||
envMap: environnement,
|
||||
side: THREE.DoubleSide,
|
||||
transparent: true,
|
||||
opacity: 0.6,
|
||||
opacity: 0.8,
|
||||
roughness: 0.2,
|
||||
metalness: 0.95,
|
||||
metalness: 0.9,
|
||||
})
|
||||
this.mesh = new InstancedMino(minoGeometry, minoMaterial, 2*ROWS*COLUMNS)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user