generate method

dynamic generate([
  1. dynamic builder,
  2. dynamic output
])
override

Implementation

generate([builder, output]) {
  var attribute = builder.getAttribute(
      this.getAttributeName(builder), this.getNodeType(builder));

  if (builder.isShaderStage('vertex')) {
    return attribute.name;
  } else {
    var nodeVary = new VaryNode(this);

    return nodeVary.build(builder, attribute.type);
  }
}