Explorar el Código

add thresholdAngle

Gregg Tavares hace 6 años
padre
commit
9262abfee8
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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;