Iīd like to write gl_FragCoord.z into gl_FragColor. gl_FragColor targets the framebuffer (32 Bit RGBA). Of course iīd like to get the full precision of gl_FragCoord.z, so i need a way to "pack" it into the color.
However i couldnīt find any packing-function in the glsl-spec. I am not sure, but if i recall correctly, ARB_fp had such a function, no?
Bitshifts arenīt supported yet, either.
So, how could i do that?