1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
Oinktube/node_modules/three/examples/js/lines/Line2.js
2023-12-11 11:59:56 -03:00

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
} );