/** * @author mr.doob / http://mrdoob.com/ * * parameters = { * color: , * opacity: , * blending: THREE.NormalBlending, * linewidth: * } */ THREE.LineBasicMaterial = function ( parameters ) { this.color = new THREE.Color( 0xff0000 ); this.opacity = 1; this.blending = THREE.NormalBlending; this.linewidth = 1; if ( parameters ) { if ( parameters.color !== undefined ) this.color.setHex( parameters.color ); if ( parameters.opacity !== undefined ) this.opacity = parameters.opacity; if ( parameters.blending !== undefined ) this.blending = parameters.blending; if ( parameters.linewidth !== undefined ) this.linewidth = parameters.linewidth; } this.toString = function () { return 'THREE.LineBasicMaterial (
' + 'color: ' + this.color + '
' + 'opacity: ' + this.opacity + '
' + 'blending: ' + this.blending + '
' + 'linewidth: ' + this.linewidth +'
' + ')'; }; };