2
0
Эх сурвалжийг харах

Using THREE.LinePieces for WireframeGeometry. See 4f4c1dece5fdc2ab4be9e6516f42a8d94911efb7.

Mr.doob 10 жил өмнө
parent
commit
122d646cb5

+ 6 - 3
examples/webgl_camera.html

@@ -104,20 +104,23 @@
 
 				mesh = new THREE.Line(
 					new THREE.WireframeGeometry( new THREE.SphereGeometry( 100, 16, 8 ) ),
-					new THREE.LineBasicMaterial( { color: 0xffffff } )
+					new THREE.LineBasicMaterial( { color: 0xffffff } ),
+					THREE.LinePieces
 				);
 				scene.add( mesh );
 
 				var mesh2 = new THREE.Line(
 					new THREE.WireframeGeometry( new THREE.SphereGeometry( 50, 16, 8 ) ),
-					new THREE.LineBasicMaterial( { color: 0x00ff00 } )
+					new THREE.LineBasicMaterial( { color: 0x00ff00 } ),
+					THREE.LinePieces
 				);
 				mesh2.position.y = 150;
 				mesh.add( mesh2 );
 
 				var mesh3 = new THREE.Line(
 					new THREE.WireframeGeometry( new THREE.SphereGeometry( 5, 16, 8 ) ),
-					new THREE.LineBasicMaterial( { color: 0x0000ff } )
+					new THREE.LineBasicMaterial( { color: 0x0000ff } ),
+					THREE.LinePieces
 				);
 				mesh3.position.z = 150;
 				cameraRig.add( mesh3 );