MeshNormalMaterial.js 881 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. *
  4. * parameters = {
  5. * opacity: <float>,
  6. *
  7. * blending: THREE.NormalBlending,
  8. * depthTest: <bool>,
  9. * depthWrite: <bool>,
  10. *
  11. * wireframe: <boolean>,
  12. * wireframeLinewidth: <float>
  13. * }
  14. */
  15. THREE.MeshNormalMaterial = function ( parameters ) {
  16. THREE.Material.call( this, parameters );
  17. this.type = 'MeshNormalMaterial';
  18. this.wireframe = false;
  19. this.wireframeLinewidth = 1;
  20. this.morphTargets = false;
  21. this.setValues( parameters );
  22. };
  23. THREE.MeshNormalMaterial.prototype = Object.create( THREE.Material.prototype );
  24. THREE.MeshNormalMaterial.prototype.constructor = THREE.MeshNormalMaterial;
  25. THREE.MeshNormalMaterial.prototype.copy = function ( source ) {
  26. THREE.Material.prototype.copy.call( this, source );
  27. this.wireframe = source.wireframe;
  28. this.wireframeLinewidth = source.wireframeLinewidth;
  29. return this;
  30. };