getAttributes method
dynamic
getAttributes(
- dynamic shaderStage
override
Implementation
getAttributes(shaderStage) {
var snippets = [];
if (shaderStage == 'vertex') {
var attributes = this.attributes;
var length = attributes.length;
for (var index = 0; index < length; index++) {
var attribute = attributes[index];
var name = attribute.name;
var type = this.getType(attribute.type);
snippets.add( "@location( ${index} ) ${ name } : ${ type }" );
}
}
return snippets.join( ',\n\t' );;
}