MeshNormalMaterial.js 836 B

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