intro ++
This commit is contained in:
@@ -87,6 +87,7 @@ const glassMat = new THREE.MeshPhysicalMaterial({
|
||||
envMapIntensity: 1.2,
|
||||
attenuationColor: new THREE.Color(0x88ffcc),
|
||||
attenuationDistance: 2,
|
||||
envMapIntensity: 2.5
|
||||
})
|
||||
|
||||
|
||||
@@ -178,6 +179,7 @@ function animate() {
|
||||
}
|
||||
if(lettersZ>1.5) {
|
||||
for(const [i, letter] of glassLetters.entries()){
|
||||
letter.rotation.x += Math.abs(i-4)/-1000
|
||||
letter.rotation.y += (i-4)/2000
|
||||
letter.position.x += (i-4)/4000
|
||||
}
|
||||
@@ -186,6 +188,7 @@ function animate() {
|
||||
lettersZ = -1
|
||||
for(const [i, letter] of glassLetters.entries()){
|
||||
letter.rotation.y = 0
|
||||
letter.rotation.x = 0
|
||||
letter.position.x = lettersPosScale[i].position.x
|
||||
letter.position.z = lettersPosScale[i].position.z
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user