/**
 * @author mr.doob / http://mrdoob.com/
 */

THREE.LineColorMaterial = function ( hex, opacity, lineWidth ) {

	this.lineWidth = lineWidth || 1;

	this.color = new THREE.Color( ( opacity >= 0 ? ( opacity * 0xff ) << 24 : 0xff000000 ) | hex );

};

THREE.LineColorMaterial.prototype = {

	toString: function () {

		return 'THREE.LineColorMaterial ( color: ' + this.color + ', lineWidth: ' + this.lineWidth + ' )';

	}

};
