| 12345678910111213141516171819202122232425262728293031323334353637 |
- /**
- * @author mr.doob / http://mrdoob.com/
- * @author alteredq / http://alteredqualia.com/
- *
- * parameters = {
- * color: <hex>,
- * opacity: <float>,
-
- * blending: THREE.NormalBlending,
- * depthTest: <bool>,
-
- * linewidth: <float>,
- * linecap: "round",
- * linejoin: "round",
-
- * vertexColors: <bool>
- * }
- */
- THREE.LineBasicMaterial = function ( parameters ) {
- THREE.Material.call( this, parameters );
- parameters = parameters || {};
- this.color = parameters.color !== undefined ? new THREE.Color( parameters.color ) : new THREE.Color( 0xffffff );
- this.linewidth = parameters.linewidth !== undefined ? parameters.linewidth : 1;
- this.linecap = parameters.linecap !== undefined ? parameters.linecap : 'round';
- this.linejoin = parameters.linejoin !== undefined ? parameters.linejoin : 'round';
- this.vertexColors = parameters.vertexColors ? parameters.vertexColors : false;
- };
- THREE.LineBasicMaterial.prototype = new THREE.Material();
- THREE.LineBasicMaterial.prototype.constructor = THREE.LineBasicMaterial;
|