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