createAttributeLocations
Creates an object that maps attribute names to unique locations (indices) for matching vertex attributes and shader programs.
const attributeLocations = GeometryPipeline.createAttributeLocations(geometry);
// Example output
// {
// 'position' : 0,
// 'normal' : 1
// }
Content copied to clipboard
Return
An object with attribute name / index pairs.
Parameters
geometry
The geometry, which is not modified, to create the object for.