04-19-2004, 05:44 PM
Hi,
Anyone has idea on what are "float textures" ?
Like on Opengl side, I'm generating a 1D texture using an array of floats as a data source...like as shown..and later I want to pass this 1D texture as "sampler1D" to my fragment program.
Now my worry is whether my gradient elements have been really treated as float elements in frag Program. I read somewhere that there is something called "float textures" ? Anyidea how these are created ? Any API on OpengL side to do that ?
Anyone has idea on what are "float textures" ?
Like on Opengl side, I'm generating a 1D texture using an array of floats as a data source...like as shown..and later I want to pass this 1D texture as "sampler1D" to my fragment program.
Now my worry is whether my gradient elements have been really treated as float elements in frag Program. I read somewhere that there is something called "float textures" ? Anyidea how these are created ? Any API on OpengL side to do that ?