source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/src/materials/MeshNormalMaterial.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: 926 bytes
Line 
1/**
2 * @author mrdoob / http://mrdoob.com/
3 *
4 * parameters = {
5 * opacity: <float>,
6 *
7 * shading: THREE.FlatShading,
8 * blending: THREE.NormalBlending,
9 * depthTest: <bool>,
10 * depthWrite: <bool>,
11 *
12 * wireframe: <boolean>,
13 * wireframeLinewidth: <float>
14 * }
15 */
16
17THREE.MeshNormalMaterial = function ( parameters ) {
18
19 THREE.Material.call( this, parameters );
20
21 this.shading = THREE.FlatShading;
22
23 this.wireframe = false;
24 this.wireframeLinewidth = 1;
25
26 this.morphTargets = false;
27
28 this.setValues( parameters );
29
30};
31
32THREE.MeshNormalMaterial.prototype = Object.create( THREE.Material.prototype );
33
34THREE.MeshNormalMaterial.prototype.clone = function () {
35
36 var material = new THREE.MeshNormalMaterial();
37
38 THREE.Material.prototype.clone.call( this, material );
39
40 material.shading = this.shading;
41
42 material.wireframe = this.wireframe;
43 material.wireframeLinewidth = this.wireframeLinewidth;
44
45 return material;
46
47};
Note: See TracBrowser for help on using the repository browser.