1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | import { LineBasicMaterial } from './LineBasicMaterial.js';
|
17 |
|
18 | function LineDashedMaterial( parameters ) {
|
19 |
|
20 | LineBasicMaterial.call( this );
|
21 |
|
22 | this.type = 'LineDashedMaterial';
|
23 |
|
24 | this.scale = 1;
|
25 | this.dashSize = 3;
|
26 | this.gapSize = 1;
|
27 |
|
28 | this.setValues( parameters );
|
29 |
|
30 | }
|
31 |
|
32 | LineDashedMaterial.prototype = Object.create( LineBasicMaterial.prototype );
|
33 | LineDashedMaterial.prototype.constructor = LineDashedMaterial;
|
34 |
|
35 | LineDashedMaterial.prototype.isLineDashedMaterial = true;
|
36 |
|
37 | LineDashedMaterial.prototype.copy = function ( source ) {
|
38 |
|
39 | LineBasicMaterial.prototype.copy.call( this, source );
|
40 |
|
41 | this.scale = source.scale;
|
42 | this.dashSize = source.dashSize;
|
43 | this.gapSize = source.gapSize;
|
44 |
|
45 | return this;
|
46 |
|
47 | };
|
48 |
|
49 |
|
50 | export { LineDashedMaterial };
|