text: "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./Node.cjs.js");function e(e,r){t.Node.call(this,r),this.name=e}require("three"),e.prototype=Object.create(t.Node.prototype),e.prototype.constructor=e,e.prototype.nodeType="Attribute",e.prototype.getAttributeType=function(t){return"number"==typeof this.type?t.getConstructorFromLength(this.type):this.type},e.prototype.getType=function(t){var e=this.getAttributeType(t);return t.getTypeByFormat(e)},e.prototype.generate=function(t,e){var r=this.getAttributeType(t),o=t.getAttribute(this.name,r),p=t.isShader("vertex")?this.name:o.varying.name;return t.format(p,this.getType(t),e)},e.prototype.copy=function(e){return t.Node.prototype.copy.call(this,e),this.type=e.type,this},e.prototype.toJSON=function(t){var e=this.getJSONNode(t);return e||((e=this.createJSONNode(t)).type=this.type),e},exports.AttributeNode=e;
  