PDA

View Full Version : may i assign a data exceed [0,1] to the rgb value?



Louvie
08-15-2006, 02:04 AM
Hi,i am now studying GPGPU and i want to transfer my data to fragment program by building a texture.But the data are not in the range of [0,1], should i normalize the data at first?if i don't,can i get the true date in fragment program?
thank you.

Relic
08-15-2006, 04:57 AM
There are floating point textures with 16 and 32 bit precision. Look up the extension http://www.opengl.org/registry/specs/ARB/texture_float.txt

There is a dedicated GPGPU site http://www.gpgpu.org/ which should get you started on such basics.