/** * @author mr.doob / http://mrdoob.com/ * @author alteredq / http://alteredqualia.com/ * * parameters = { * color: , * opacity: , * blending: THREE.NormalBlending, * depth_test: , * linewidth: , * linecap: "round", * linejoin: "round", * vertex_colors: * } */ THREE.LineBasicMaterial = function ( parameters ) { this.id = THREE.MaterialCounter.value ++; this.color = new THREE.Color( 0xffffff ); this.opacity = 1.0; this.blending = THREE.NormalBlending; this.depth_test = true; this.linewidth = 1.0; this.linecap = 'round'; // implemented just in CanvasRenderer this.linejoin = 'round'; // implemented just in CanvasRenderer this.vertex_colors = false; 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.depth_test !== undefined ) this.depth_test = parameters.depth_test; if ( parameters.linewidth !== undefined ) this.linewidth = parameters.linewidth; if ( parameters.linecap !== undefined ) this.linecap = parameters.linecap; if ( parameters.linejoin !== undefined ) this.linejoin = parameters.linejoin; if ( parameters.vertex_colors !== undefined ) this.vertex_colors = parameters.vertex_colors; } }; THREE.LineBasicMaterial.prototype = { toString: function () { return 'THREE.LineBasicMaterial (
' + 'id: ' + this.id + '
' + 'color: ' + this.color + '
' + 'opacity: ' + this.opacity + '
' + 'blending: ' + this.blending + '
' + 'depth_test: ' + this.depth_test + '
' + 'linewidth: ' + this.linewidth +'
' + 'linecap: ' + this.linecap +'
' + 'linejoin: ' + this.linejoin +'
' + 'vertex_colors: ' + this.vertex_colors + '
' + ')'; } };