Program 31 – Motion blur with p-buffer
08.08.2004
Program uses pixel buffer, for rendering scene to texture. Motion blur is make with equation:
frame(t+1) = alpha*texture + (1-alpha)*frame(t)
Frame buffer doesn’t need clear. Frame buffer doesn’t contain z-buffer. Alpha is preset on 0.18. Texture has 1024 * 1024. Texture contain z-buffer.
Request: WGL_ARB_pbuffer, WGL_ARB_pixel_format and WGL_ARB_render_texture.