glsl: move half<->float convertion to util