View Full Version : Store shader output (color) on vertex structures

08-26-2008, 03:06 PM
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.

08-26-2008, 04:43 PM
I just need to store rendered results in a buffer of vertex data

Ilian Dinev
08-26-2008, 05:48 PM
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.