diff --git a/src/open.js b/src/open.js index f20c989..2319de0 100644 --- a/src/open.js +++ b/src/open.js @@ -47,9 +47,12 @@ function addStar() { let material = new THREE.MeshStandardMaterial({ side: THREE.FrontSide, - color: 0x00ff00, + color: 0x4fbc32, flatShading: true, }); + let ringMaterial = new THREE.MeshPhysicalMaterial({ + color: 0x008000, + }); let backMaterial = material.clone(); backMaterial.side = THREE.BackSide; @@ -62,7 +65,7 @@ function addStar() { coreStarGroup.add(backStar); let ringGeometry = generateStarRing(2, 3, 0.4); - let ring = new THREE.Mesh(ringGeometry, material); + let ring = new THREE.Mesh(ringGeometry, ringMaterial); ring.receiveShadow = ring.castShadow = true; coreStarGroup.add(ring); } @@ -175,8 +178,8 @@ function loadFont() { }).center(); geometry.computeFaceNormals(); - let textMaterial = new THREE.MeshStandardMaterial({ - color: 0xff00ff + let textMaterial = new THREE.MeshPhysicalMaterial({ + color: 0x004f00 }); let mesh = new THREE.Mesh(geometry, textMaterial); @@ -248,9 +251,9 @@ function animate() { } animation.steps--; - interpolate(animation.x, 0.05); - interpolate(animation.y, 0.05); - interpolate(animation.z, 0.05); + interpolate(animation.x, 0.025); + interpolate(animation.y, 0.025); + interpolate(animation.z, 0.025); coreStarGroup.rotation.x = animation.x.last(); coreStarGroup.rotation.y = animation.y.last();