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

@ -43,19 +43,23 @@ export class TetraGUI extends GUI {
texture.repeat.set(2, 1) texture.repeat.set(2, 1)
}) })
loadingManager.onLoad = function() { loadingManager.onLoad = function() {
scene.vortex.darkCylinder.material.map = darkTexture scene.vortex.darkCylinder.material.map = darkTexture
scene.vortex.darkCylinder.material.opacity = 0.055 scene.vortex.darkCylinder.material.opacity = 0.055
scene.vortex.colorFullCylinder.material.map = colorfullTexture 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.globalRotation = 0.028
scene.vortex.darkTextureRotation = 0.005 scene.vortex.darkTextureRotation = 0.005
scene.vortex.darkMoveForward = 0.009 scene.vortex.darkMoveForward = 0.009
scene.vortex.colorFullTextureRotation = 0.006 scene.vortex.colorFullTextureRotation = 0.006
scene.vortex.colorFullMoveForward = 0.015 scene.vortex.colorFullMoveForward = 0.015
scene.ambientLight.intensity = 1 scene.ambientLight.intensity = 1
scene.directionalLight.intensity = 1 scene.directionalLight.intensity = 1
Mino.material.opacity = 0.6
Mino.material.roughness = 0.4
Mino.material.metalness = 0.95
} }
break break
case "Espace": case "Espace":
@ -71,9 +75,9 @@ export class TetraGUI extends GUI {
}) })
loadingManager.onLoad = function() { loadingManager.onLoad = function() {
scene.vortex.darkCylinder.material.map = darkTexture 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.map = colorfullTexture
scene.vortex.colorFullCylinder.material.opacity = 0.2 scene.vortex.colorFullCylinder.material.opacity = 0.6
scene.vortex.globalRotation = 0.028 scene.vortex.globalRotation = 0.028
scene.vortex.darkTextureRotation = 0.006 scene.vortex.darkTextureRotation = 0.006
@ -81,8 +85,8 @@ export class TetraGUI extends GUI {
scene.vortex.colorFullTextureRotation = 0.006 scene.vortex.colorFullTextureRotation = 0.006
scene.vortex.colorFullMoveForward = 0.02 scene.vortex.colorFullMoveForward = 0.02
scene.ambientLight.intensity = 2 scene.ambientLight.intensity = 0.6
scene.directionalLight.intensity = 3 scene.directionalLight.intensity = 1
} }
break break
} }
@ -162,7 +166,7 @@ export class TetraGUI extends GUI {
side: THREE.DoubleSide, side: THREE.DoubleSide,
transparent: true, transparent: true,
opacity: 0.6, opacity: 0.6,
roughness: 0.4, roughness: 0.06,
metalness: 0.95, metalness: 0.95,
}) })
break break

View File

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

View File

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