MeshDepthMaterial.js 910 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. THREE.MeshDepthMaterial = function ( parameters ) {
  17. THREE.Material.call( this );
  18. this.type = 'MeshDepthMaterial';
  19. this.morphTargets = false;
  20. this.wireframe = false;
  21. this.wireframeLinewidth = 1;
  22. this.setValues( parameters );
  23. };
  24. THREE.MeshDepthMaterial.prototype = Object.create( THREE.Material.prototype );
  25. THREE.MeshDepthMaterial.prototype.constructor = THREE.MeshDepthMaterial;
  26. THREE.MeshDepthMaterial.prototype.copy = function ( source ) {
  27. THREE.Material.prototype.copy.call( this, source );
  28. this.wireframe = source.wireframe;
  29. this.wireframeLinewidth = source.wireframeLinewidth;
  30. return this;
  31. };
粤ICP备19079148号