MacFiend
2003.03.25, 06:16 PM
I got this from the OpenGL Red Book. It supposedly allows for antialiasing/motion blur and whatnot. However it doesn't seem to work for me.
glClear(GL_ACCUM_BUFFER_BIT);
for(..however many times)
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
..draw scene at different positions..
glAccum(GL_ACCUM, 1.0/ACSIZE);
}
glAccum (GL_RETURN, 1.0);
Should that work or is there something I'm missing something?
glClear(GL_ACCUM_BUFFER_BIT);
for(..however many times)
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
..draw scene at different positions..
glAccum(GL_ACCUM, 1.0/ACSIZE);
}
glAccum (GL_RETURN, 1.0);
Should that work or is there something I'm missing something?