Utility static class providing functionality to pack float values to various storage representations.
Static
Packs a float to a 16-bit half-float representation used by the GPU.
The float value to pack.
The 16-bit half-float representation as an integer.
const half = pc.FloatPacking.float2Half(1.5); Copy
const half = pc.FloatPacking.float2Half(1.5);
Utility static class providing functionality to pack float values to various storage representations.