LineDashedMaterial.js 524 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { LineBasicMaterial } from './LineBasicMaterial.js';
  2. class LineDashedMaterial extends LineBasicMaterial {
  3. constructor( parameters ) {
  4. super();
  5. this.isLineDashedMaterial = true;
  6. this.type = 'LineDashedMaterial';
  7. this.scale = 1;
  8. this.dashSize = 3;
  9. this.gapSize = 1;
  10. this.setValues( parameters );
  11. }
  12. copy( source ) {
  13. super.copy( source );
  14. this.scale = source.scale;
  15. this.dashSize = source.dashSize;
  16. this.gapSize = source.gapSize;
  17. return this;
  18. }
  19. }
  20. export { LineDashedMaterial };