ソースを参照

Applied @alteredq changes to extrude spline example.

Mr.doob 13 年 前
コミット
c1521d2b33
1 ファイル変更4 行追加3 行削除
  1. 4 3
      examples/webgl_geometry_extrude_splines.html

+ 4 - 3
examples/webgl_geometry_extrude_splines.html

@@ -451,12 +451,13 @@
         tubeMesh = THREE.SceneUtils.createMultiMaterialObject(geometry, [
           new THREE.MeshLambertMaterial({
               color: color,
-              opacity: 0.2
+              opacity: 0.2,
+              transparent: true
           }),
          new THREE.MeshBasicMaterial({
             color: 0x000000,
-            wireframe: true,
-            transparent: true
+            opacity: 0.3,
+            wireframe: true
         })]);
 
         if (geometry.debug) tubeMesh.add(geometry.debug);