mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
18 lines
445 B
JavaScript
18 lines
445 B
JavaScript
THREE.Line2 = function ( geometry, material ) {
|
|
|
|
if ( geometry === undefined ) geometry = new THREE.LineGeometry();
|
|
if ( material === undefined ) material = new THREE.LineMaterial( { color: Math.random() * 0xffffff } );
|
|
|
|
THREE.LineSegments2.call( this, geometry, material );
|
|
|
|
this.type = 'Line2';
|
|
|
|
};
|
|
|
|
THREE.Line2.prototype = Object.assign( Object.create( THREE.LineSegments2.prototype ), {
|
|
|
|
constructor: THREE.Line2,
|
|
|
|
isLine2: true
|
|
|
|
} );
|