On 5/3/06, William Law <[EMAIL PROTECTED]> wrote:
I had a buffer of float numbers and wanted to use it as a texture to provide information for my fragment shader. However, osg::Image only accept unsigned char * data. Is there any way around this problem?
Just cast your data to char*, and set the pixel format to the GL_FLOAT. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
