UNPKG

three

Version:

JavaScript 3D library

42 lines (28 loc) 877 B
/** * @author mrdoob / http://mrdoob.com/ * * parameters = { * opacity: <float>, * * wireframe: <boolean>, * wireframeLinewidth: <float> * } */ THREE.MeshNormalMaterial = function ( parameters ) { THREE.Material.call( this, parameters ); this.type = 'MeshNormalMaterial'; this.wireframe = false; this.wireframeLinewidth = 1; this.fog = false; this.lights = false; this.morphTargets = false; this.setValues( parameters ); }; THREE.MeshNormalMaterial.prototype = Object.create( THREE.Material.prototype ); THREE.MeshNormalMaterial.prototype.constructor = THREE.MeshNormalMaterial; THREE.MeshNormalMaterial.prototype.copy = function ( source ) { THREE.Material.prototype.copy.call( this, source ); this.wireframe = source.wireframe; this.wireframeLinewidth = source.wireframeLinewidth; return this; };