I am using the code bellow to write a 16bit value to a texture.
However, when my value goes over 255, the pixel value loops back to 0. I cant get a value any higher than 1.
I have tried a few pixel formats, but to no avail :(.
I need to make texture pixels with 16 bit precision, can anyone help with this?