encodeAttribute
fun encodeAttribute(geometry: Geometry, attributeName: String, attributeHighName: String, attributeLowName: String): Geometry(source)
Encodes floating-point geometry attribute values as two separate attributes to improve rendering precision.
This is commonly used to create high-precision position vertex attributes.
geometry = GeometryPipeline.encodeAttribute(geometry, 'position3D', 'position3DHigh', 'position3DLow');
Content copied to clipboard
Return
The modified geometry
argument, with its encoded attribute.
Parameters
geometry
The geometry to modify.
attributeName
The name of the attribute.
attributeHighName
The name of the attribute for the encoded high bits.
attributeLowName
The name of the attribute for the encoded low bits.