I have a 3D model and while rendering i am using shaders to calculate the vertex color(computationally intensive task), based on some parameters. These parameters change with time. So basically i need to calculate the vertex color based on the present parameters and sum it up with the previously rendered vertex color. I will be dealing with models that have 5-10 million vertices. Can someone please help me with ways to solve this problem.
Sorry for the unclear question. The problem i am facing is how to backup the previous vertex color calculated from the shader. I cannot use blending since the object can be rotated. So basically i need a mechanism to save the vertex color information calculated from shader and use it in the next pass.