You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
326 B
21 lines
326 B
2 years ago
|
( function () {
|
||
|
|
||
|
class Line2 extends THREE.LineSegments2 {
|
||
|
|
||
|
constructor( geometry = new THREE.LineGeometry(), material = new THREE.LineMaterial( {
|
||
|
color: Math.random() * 0xffffff
|
||
|
} ) ) {
|
||
|
|
||
|
super( geometry, material );
|
||
|
this.type = 'Line2';
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
Line2.prototype.isLine2 = true;
|
||
|
|
||
|
THREE.Line2 = Line2;
|
||
|
|
||
|
} )();
|