Appearance
KBE3D / KBCore / Cesium / GeometryPipeline / createAttributeLocations
函数: createAttributeLocations()
createAttributeLocations(
geometry:Geometry):any
Creates an object that maps attribute names to unique locations (indices) for matching vertex attributes and shader programs.
参数
geometry
The geometry, which is not modified, to create the object for.
返回
any
An object with attribute name / index pairs.
示例
ts
const attributeLocations = Cesium.GeometryPipeline.createAttributeLocations(geometry);
// Example output
// {
// 'position' : 0,
// 'normal' : 1
// }