|
|
// Accumulation buffer demo
glAccum( GL_LOAD, 0.5f ); // Load the accumulation buffer with 50% of the current frame
// Draw offested object
for( int nCount = 0; nCount< 10; nCount++ )
{
glTranslatef( 0.01f, 0.05f, 0.05f );
DrawObject( );
glAccum( GL_ACCUM, 0.01f /*这个值好象没有作用,我想要的是半透明效果,实际不是的,请看图*/);
}
glAccum( GL_RETURN, 1.0f ); |
|