Hi, On 1/10/10 20:11 , Mahendra G.R wrote: > this is my situation : i have a fragment shader doing some calculation and i > want to store > it in a texture, i saw some examples but most of them dont talk about > shaders. how can i > get the data back from the shader and store it as a texture using OSG. I'm > trying to do > it with an FBO and a camera to render
In general render to texture is no different when using shaders. You setup the camera to render to a texture and the shader is ignorant of where it's writing its gl_FragColor to. The situation changes a little when you need to write to multiple render targets from the fragment shader. Cheers, /ulrich _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

