123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /**
- * @author mrdoob / 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>
- *
- * fog: <bool>
- * }
- */
- THREE.LineBasicMaterial = function ( parameters ) {
- THREE.Material.call( this );
- this.color = new THREE.Color( 0xffffff );
- this.linewidth = 1;
- this.linecap = 'round';
- this.linejoin = 'round';
- this.vertexColors = false;
- this.fog = true;
- this.setValues( parameters );
- };
- THREE.LineBasicMaterial.prototype = Object.create( THREE.Material.prototype );
- THREE.LineBasicMaterial.prototype.clone = function () {
- var material = new THREE.LineBasicMaterial();
- THREE.Material.prototype.clone.call( this, material );
- material.color.copy( this.color );
- material.linewidth = this.linewidth;
- material.linecap = this.linecap;
- material.linejoin = this.linejoin;
- material.vertexColors = this.vertexColors;
- material.fog = this.fog;
- return material;
- };
|