MeshNormalMaterial.js 664 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. *
  4. * parameters = {
  5. * opacity: <float>,
  6. * shading: THREE.FlatShading,
  7. * blending: THREE.NormalBlending,
  8. * depthTest: <bool>,
  9. * wireframe: <boolean>,
  10. * wireframeLinewidth: <float>
  11. * }
  12. */
  13. THREE.MeshNormalMaterial = function ( parameters ) {
  14. THREE.Material.call( this, parameters );
  15. this.shading = THREE.FlatShading;
  16. this.wireframe = false;
  17. this.wireframeLinewidth = 1;
  18. this.setValues( parameters );
  19. };
  20. THREE.MeshNormalMaterial.prototype = Object.create( THREE.Material.prototype );
  21. THREE.MeshNormalMaterial.prototype.clone = function () {
  22. return new THREE.MeshNormalMaterial( this );
  23. };
粤ICP备19079148号