generate method
dynamic
generate([
- dynamic builder,
- 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);
}
}