Fix endianness for 3d_scale