Less terrible colors.
This commit is contained in:
17
src/open.js
17
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();
|
||||
|
||||
Reference in New Issue
Block a user