Does anyone know how to store color in some kind of vertex data structure maybe through the use of VBO’s or something.
The thing is that I need to render a scene using a Cg shader and I need to store the color’s of that scene at each vertex, so I can render the same vertices with the new colors.
Thanks a lot.
I just need to store rendered results in a buffer of vertex data
Get nVidia SDK9 , search for files and classes named RenderVertexArray. Uses PBOs and VBOs, works like a charm on SM3 cards, by copying/streaming data (driver-dependent). On SM4 cards, it maybe doesn’t copy data, but there you also have other options: transform feedback, and using buffers for anything. I haven’t researched on the SM4 ways yet.