소스 검색

add thresholdAngle

Gregg Tavares 5 년 전
부모
커밋
9262abfee8
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      threejs/threejs-primitives.html

+ 4 - 1
threejs/threejs-primitives.html

@@ -324,7 +324,10 @@ function main() {
     const width = 8;
     const height = 8;
     const depth = 8;
-    addLineGeometry(-1, -2, new THREE.EdgesGeometry(new THREE.BoxBufferGeometry(width, height, depth)));
+    const thresholdAngle = 15;
+    addLineGeometry(-1, -2, new THREE.EdgesGeometry(
+        new THREE.BoxBufferGeometry(width, height, depth),
+        thresholdAngle));
   }
   {
     const width = 8;