octPack

external fun octPack(v1: Cartesian3, v2: Cartesian3, v3: Cartesian3, result: Cartesian2): Cartesian2(source)

Encodes three normalized vectors into 6 SNORM values in the range of 0-255 following the 'oct' encoding and packs those into two floating-point numbers.

Return

The 'oct' encoded vectors packed into two floating-point numbers.

Parameters

v1

A normalized vector to be compressed.

v2

A normalized vector to be compressed.

v3

A normalized vector to be compressed.

result

The 'oct' encoded vectors packed into two floating-point numbers.

See also