MeshDepthMaterial.js 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { Material } from './Material.js';
  2. import { BasicDepthPacking } from '../constants.js';
  3. class MeshDepthMaterial extends Material {
  4. constructor( parameters ) {
  5. super();
  6. this.type = 'MeshDepthMaterial';
  7. this.depthPacking = BasicDepthPacking;
  8. this.map = null;
  9. this.alphaMap = null;
  10. this.displacementMap = null;
  11. this.displacementScale = 1;
  12. this.displacementBias = 0;
  13. this.wireframe = false;
  14. this.wireframeLinewidth = 1;
  15. this.fog = false;
  16. this.setValues( parameters );
  17. }
  18. copy( source ) {
  19. super.copy( source );
  20. this.depthPacking = source.depthPacking;
  21. this.map = source.map;
  22. this.alphaMap = source.alphaMap;
  23. this.displacementMap = source.displacementMap;
  24. this.displacementScale = source.displacementScale;
  25. this.displacementBias = source.displacementBias;
  26. this.wireframe = source.wireframe;
  27. this.wireframeLinewidth = source.wireframeLinewidth;
  28. return this;
  29. }
  30. }
  31. MeshDepthMaterial.prototype.isMeshDepthMaterial = true;
  32. export { MeshDepthMaterial };