Hi, i need random float values in my fragment shader for some post-processing. I create the random values on the cpu and stroe them in a float array. The next step is, I try to do is to create a texture and copy the array with random float values in all channels (RGBA) into the texture. In the last step i want to pass this texture to my fragment shader. In OpenGL I can do this with:
Code: //create randomFloatsArray //... // copy to texture glTexSubImage2D(GL_TEXTURE_RECTANGLE_ARB,0,0,0,width, height,GL_RGBA,GL_FLOAT,randomFloatsArray); How can I do this with OSG? Thank you! Cheers, Dan ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36616#36616 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

