Appearance
KBE3D / KBCore / Cesium / GeometryPipeline / encodeAttribute
函数: encodeAttribute()
encodeAttribute(
geometry:Geometry,attributeName:string,attributeHighName:string,attributeLowName:string):Geometry
Encodes floating-point geometry attribute values as two separate attributes to improve rendering precision. <p> This is commonly used to create high-precision position vertex attributes. </p>
参数
geometry
The geometry to modify.
attributeName
string
The name of the attribute.
attributeHighName
string
The name of the attribute for the encoded high bits.
attributeLowName
string
The name of the attribute for the encoded low bits.
返回
The modified geometry argument, with its encoded attribute.
示例
ts
geometry = Cesium.GeometryPipeline.encodeAttribute(geometry, 'position3D', 'position3DHigh', 'position3DLow');