This commit is contained in:
Adrien MALINGREY 2023-07-20 20:05:13 +02:00
parent e1da884441
commit b227690b31
3 changed files with 20 additions and 16 deletions

View File

@ -46,7 +46,7 @@ export class TetraGUI extends GUI {
scene.vortex.darkCylinder.material.map = darkTexture
scene.vortex.darkCylinder.material.opacity = 0.055
scene.vortex.colorFullCylinder.material.map = colorfullTexture
scene.vortex.colorFullCylinder.material.opacity = 0.7
scene.vortex.colorFullCylinder.material.opacity = 0.6
scene.vortex.globalRotation = 0.028
scene.vortex.darkTextureRotation = 0.005
@ -56,6 +56,10 @@ export class TetraGUI extends GUI {
scene.ambientLight.intensity = 1
scene.directionalLight.intensity = 1
Mino.material.opacity = 0.6
Mino.material.roughness = 0.4
Mino.material.metalness = 0.95
}
break
case "Espace":
@ -71,9 +75,9 @@ export class TetraGUI extends GUI {
})
loadingManager.onLoad = function() {
scene.vortex.darkCylinder.material.map = darkTexture
scene.vortex.darkCylinder.material.opacity = 0.2
scene.vortex.darkCylinder.material.opacity = 0.055
scene.vortex.colorFullCylinder.material.map = colorfullTexture
scene.vortex.colorFullCylinder.material.opacity = 0.2
scene.vortex.colorFullCylinder.material.opacity = 0.6
scene.vortex.globalRotation = 0.028
scene.vortex.darkTextureRotation = 0.006
@ -81,8 +85,8 @@ export class TetraGUI extends GUI {
scene.vortex.colorFullTextureRotation = 0.006
scene.vortex.colorFullMoveForward = 0.02
scene.ambientLight.intensity = 2
scene.directionalLight.intensity = 3
scene.ambientLight.intensity = 0.6
scene.directionalLight.intensity = 1
}
break
}
@ -162,7 +166,7 @@ export class TetraGUI extends GUI {
side: THREE.DoubleSide,
transparent: true,
opacity: 0.6,
roughness: 0.4,
roughness: 0.06,
metalness: 0.95,
})
break

View File

@ -42,7 +42,7 @@ export class Vortex extends THREE.Group {
texture.repeat.set(2, 1)
}),
blending: THREE.AdditiveBlending,
opacity: 0.7
opacity: 0.6
})
)
this.add(this.colorFullCylinder)

View File

@ -121,7 +121,7 @@ class Mino extends THREE.Object3D {
side: THREE.DoubleSide,
transparent: true,
opacity: 0.6,
roughness: 0.4,
roughness: 0.06,
metalness: 0.95,
})
this.mesh = new InstancedMino(minoGeometry, minoMaterial, 2*ROWS*COLUMNS)