fn encode_scale2(extents: Vec2) -> Vec2
The 2D counterpart of encode_scale, for the UV range.
encode_scale