Zanir » Blog Archive » Program 15 – Render to texture

Program 15 – Render to texture

03.07.2002

015_render_to_textureRendering to texture is interesting technique. That makes it possible to creates various effects: motion blur, radial blur, …
This works simple: uses glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, size, size, 0); to copy data from screen to texture.

source code and program – 93kB

Leave a Reply