parseVertexColors method
dynamic
parseVertexColors(
- dynamic ColorNode
Implementation
parseVertexColors( ColorNode ) {
var mappingType = ColorNode.MappingInformationType;
var referenceType = ColorNode.ReferenceInformationType;
var buffer = ColorNode.Colors.a;
var indexBuffer = [];
if ( referenceType == 'IndexToDirect' ) {
indexBuffer = ColorNode.ColorIndex.a;
}
return {
"dataSize": 4,
"buffer": buffer,
"indices": indexBuffer,
"mappingType": mappingType,
"referenceType": referenceType
};
}