LineBasicNodeMaterial.js 793 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import NodeMaterial from './NodeMaterial.js';
  2. import { LineBasicMaterial } from 'three';
  3. const defaultValues = new LineBasicMaterial();
  4. class LineBasicNodeMaterial extends NodeMaterial {
  5. constructor( parameters ) {
  6. super();
  7. this.isLineBasicNodeMaterial = true;
  8. this.colorNode = null;
  9. this.opacityNode = null;
  10. this.alphaTestNode = null;
  11. this.lightNode = null;
  12. this.positionNode = null;
  13. this.setDefaultValues( defaultValues );
  14. this.setValues( parameters );
  15. }
  16. copy( source ) {
  17. this.colorNode = source.colorNode;
  18. this.opacityNode = source.opacityNode;
  19. this.alphaTestNode = source.alphaTestNode;
  20. this.lightNode = source.lightNode;
  21. this.positionNode = source.positionNode;
  22. return super.copy( source );
  23. }
  24. }
  25. export default LineBasicNodeMaterial;