| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /**
- * @author alteredq / http://alteredqualia.com/
- *
- * parameters = {
- * color: <hex>,
- * opacity: <float>,
- *
- * blending: THREE.NormalBlending,
- * depthTest: <bool>,
- * depthWrite: <bool>,
- *
- * linewidth: <float>,
- *
- * scale: <float>,
- * dashSize: <float>,
- * gapSize: <float>,
- *
- * vertexColors: THREE.NoColors / THREE.FaceColors / THREE.VertexColors
- *
- * fog: <bool>
- * }
- */
- THREE.LineDashedMaterial = function ( parameters ) {
- THREE.Material.call( this );
- this.type = 'LineDashedMaterial';
- this.color = new THREE.Color( 0xffffff );
- this.linewidth = 1;
- this.scale = 1;
- this.dashSize = 3;
- this.gapSize = 1;
- this.vertexColors = THREE.NoColors;
- this.fog = true;
- this.setValues( parameters );
- };
- THREE.LineDashedMaterial.prototype = Object.create( THREE.Material.prototype );
- THREE.LineDashedMaterial.prototype.constructor = THREE.LineDashedMaterial;
- THREE.LineDashedMaterial.prototype.copy = function ( source ) {
- THREE.Material.prototype.copy.call( this, source );
- this.color.copy( source.color );
-
- this.linewidth = source.linewidth;
- this.scale = source.scale;
- this.dashSize = source.dashSize;
- this.gapSize = source.gapSize;
- this.vertexColors = source.vertexColors;
- this.fog = source.fog;
- return this;
- };
|