As I understand, if I create a floating point texture ( type RGBA32F / FLOAT) I can read float values directly like so:
float val = float(texture2D(float_tex, texel_xy));
but how do I write to one, is there a built-in function or syntax for that, how to auto-encode value to pixel?
gl_FragColor = 3.1415; ???
thank you!