PDA

View Full Version : Creating Float textures ?



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 ?

mikael_aronsson
04-19-2004, 10:29 PM
Hi !

The best place to look for is the opengl spec. you can find it on this website.

Mikael