text: "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Node.cjs.js");function t(t,o){e.Node.call(this,t),this.value=o}require("three"),t.prototype=Object.create(e.Node.prototype),t.prototype.constructor=t,t.prototype.nodeType="Var",t.prototype.getType=function(e){return e.getTypeByFormat(this.type)},t.prototype.generate=function(e,t){var o=e.getVar(this.uuid,this.type);return this.value&&e.isShader("vertex")&&e.addNodeCode(o.name+" = "+this.value.build(e,this.getType(e))+";"),e.format(o.name,this.getType(e),t)},t.prototype.copy=function(t){return e.Node.prototype.copy.call(this,t),this.type=t.type,this.value=t.value,this},t.prototype.toJSON=function(e){var t=this.getJSONNode(e);return t||((t=this.createJSONNode(e)).type=this.type,this.value&&(t.value=this.value.toJSON(e).uuid)),t},exports.VarNode=t;
  