/** * @author mr.doob / http://mrdoob.com/ * * parameters = { * near: , * far: , * opacity: , * blending: THREE.NormalBlending * } */ THREE.MeshDepthMaterial = function ( parameters ) { this.near = 1; this.far = 1000; this.opacity = 1; this.blending = THREE.NormalBlending; if ( parameters ) { if ( parameters.near !== undefined ) this.near = parameters.near; if ( parameters.far !== undefined ) this.far = parameters.far; if ( parameters.opacity !== undefined ) this.opacity = parameters.opacity; if ( parameters.blending !== undefined ) this.blending = parameters.blending; } this.__2near = 2 * this.near; this.__farPlusNear = this.far + this.near; this.__farMinusNear = this.far - this.near; this.toString = function () { return 'THREE.MeshDepthMaterial'; }; }