generate method
dynamic
generate([
- dynamic builder,
- dynamic output
Implementation
generate([builder, output]) {
var type = this.getNodeType(builder);
var node = this.node;
var name = this.name;
var nodeVary = builder.getVaryFromNode(this, type);
if (name != null) {
nodeVary.name = name;
}
var propertyName =
builder.getPropertyName(nodeVary, NodeShaderStage.Vertex);
// force node run in vertex stage
builder.flowNodeFromShaderStage(
NodeShaderStage.Vertex, node, type, propertyName);
var _result = builder.getPropertyName(nodeVary);
return _result;
}