Hi,
you'll have to use "ping-pong" if you want to update a texture from a
current state. Have a look at the osggameoflife example.
cheers
jp
On 21/02/11 16:52, "Martin Großer" wrote:
Hello,
Have everyone experience with the gl shading language? I would like to do
something like that on my texture (I use render to texture):
gl_FragData[0] += vec(0.01,0,0,1);
Is that possible? I want to increment the color in my texture in every render
pass (in this case the red channel). I don't want to copy back to the cpu
memory. And I use the FRAME_BUFFER_OBJECT. I guess the gl_FragData[0] is in
every render pass zero (black). Is it possible to change that?
Cheers
Martin
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org