浏览代码

add thresholdAngle

Gregg Tavares 6 年之前
父节点
当前提交
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;