1 import { Material } from './Material';
2 import { Color } from '../math/Color';
5 * @author mrdoob / http://mrdoob.com/
6 * @author alteredq / http://alteredqualia.com/
18 function LineBasicMaterial( parameters ) {
20 Material.call( this );
22 this.type = 'LineBasicMaterial';
24 this.color = new Color( 0xffffff );
27 this.linecap = 'round';
28 this.linejoin = 'round';
32 this.setValues( parameters );
36 LineBasicMaterial.prototype = Object.create( Material.prototype );
37 LineBasicMaterial.prototype.constructor = LineBasicMaterial;
39 LineBasicMaterial.prototype.isLineBasicMaterial = true;
41 LineBasicMaterial.prototype.copy = function ( source ) {
43 Material.prototype.copy.call( this, source );
45 this.color.copy( source.color );
47 this.linewidth = source.linewidth;
48 this.linecap = source.linecap;
49 this.linejoin = source.linejoin;
56 export { LineBasicMaterial };