I saved some values in a matrix, and want to use the matrix to initialize a texture.
Some of the values in the matrix are greater than one, and they are all in floating format.
The texture is generated using the following code:
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, imageWidth,
imageHeight, 0, GL_RGBA, GL_FLOAT, myMatrix);
However, when I use gDEBugger to check the value saved in the texture, only to find that all values are less than one. Why? How to solve this problem?