PointsNodeMaterial.js 702 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { PointsMaterial } from 'three';
  2. class PointsNodeMaterial extends PointsMaterial {
  3. constructor( parameters ) {
  4. super( parameters );
  5. this.colorNode = null;
  6. this.opacityNode = null;
  7. this.alphaTestNode = null;
  8. this.lightNode = null;
  9. this.sizeNode = null;
  10. this.positionNode = null;
  11. }
  12. copy( source ) {
  13. this.colorNode = source.colorNode;
  14. this.opacityNode = source.opacityNode;
  15. this.alphaTestNode = source.alphaTestNode;
  16. this.lightNode = source.lightNode;
  17. this.sizeNode = source.sizeNode;
  18. this.positionNode = source.positionNode;
  19. return super.copy( source );
  20. }
  21. }
  22. PointsNodeMaterial.prototype.isNodeMaterial = true;
  23. export default PointsNodeMaterial;