source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/src/materials/LineDashedMaterial.js@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 1.1 KB
Line 
1/**
2 * @author alteredq / http://alteredqualia.com/
3 *
4 * parameters = {
5 * color: <hex>,
6 * opacity: <float>,
7 *
8 * blending: THREE.NormalBlending,
9 * depthTest: <bool>,
10 * depthWrite: <bool>,
11 *
12 * linewidth: <float>,
13 *
14 * scale: <float>,
15 * dashSize: <float>,
16 * gapSize: <float>,
17 *
18 * vertexColors: <bool>
19 *
20 * fog: <bool>
21 * }
22 */
23
24THREE.LineDashedMaterial = function ( parameters ) {
25
26 THREE.Material.call( this );
27
28 this.color = new THREE.Color( 0xffffff );
29
30 this.linewidth = 1;
31
32 this.scale = 1;
33 this.dashSize = 3;
34 this.gapSize = 1;
35
36 this.vertexColors = false;
37
38 this.fog = true;
39
40 this.setValues( parameters );
41
42};
43
44THREE.LineDashedMaterial.prototype = Object.create( THREE.Material.prototype );
45
46THREE.LineDashedMaterial.prototype.clone = function () {
47
48 var material = new THREE.LineDashedMaterial();
49
50 THREE.Material.prototype.clone.call( this, material );
51
52 material.color.copy( this.color );
53
54 material.linewidth = this.linewidth;
55
56 material.scale = this.scale;
57 material.dashSize = this.dashSize;
58 material.gapSize = this.gapSize;
59
60 material.vertexColors = this.vertexColors;
61
62 material.fog = this.fog;
63
64 return material;
65
66};
Note: See TracBrowser for help on using the repository browser.