encode/decode a float as a vec4
fixed the OIT blend function