getVars method
dynamic
getVars(
- dynamic shaderStage
override
Implementation
getVars(shaderStage) {
var snippets = [];
var vars = this.vars[shaderStage];
for (var index = 0; index < vars.length; index++) {
var variable = vars[index];
var name = variable.name;
var type = this.getType(variable.type);
snippets.add( "\tvar ${name} : ${type};" );
}
return "\n${ snippets.join( '\n' ) }\n";
}