generate method
dynamic
generate(
[ - dynamic builder,
- dynamic output
])
Implementation
@override
generate([builder, output]) {
var type = this.getNodeType(builder);
if (this.constant == true) {
return builder.format(this.generateConst(builder), type, output);
} else {
var inputType = this.getInputType(builder);
var nodeUniform =
builder.getUniformFromNode(this, builder.shaderStage, inputType);
var propertyName = builder.getPropertyName(nodeUniform);
return builder.format(propertyName, type, output);
}
}