Skip to content

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

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
// }

KBE3D @3.0.0 Copyright © 2024-present KBE3D