소스 검색

adjust colors

Gregg Tavares 6 년 전
부모
커밋
293ddc51b6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      threejs/threejs-lots-of-objects-slow.html

+ 1 - 1
threejs/threejs-lots-of-objects-slow.html

@@ -126,7 +126,7 @@ function main() {
         const material = new THREE.MeshBasicMaterial();
         const hue = THREE.Math.lerp(0.7, 0.3, amount);
         const saturation = 1;
-        const lightness = THREE.Math.lerp(0.1, 1.0, amount);
+        const lightness = THREE.Math.lerp(0.4, 1.0, amount);
         material.color.setHSL(hue, saturation, lightness);
         const mesh = new THREE.Mesh(geometry, material);
         scene.add(mesh);