PDA

View Full Version : NV_render_texture_rectangle + gl_FragData[n]



dimensionX
02-17-2005, 03:28 PM
Is it possible to create multiple rectangular pbuffers and render into them (different data) in a single pass via the GLSL gl_FragData[n] ?

Is it possible to do the above using GLUT ?

yooyo
02-17-2005, 05:29 PM
1. You need hw with MRT support (ATI 9800+ or Nvidia 6800)
2. You have to create one pbuffer with AUX buffers in it. All AUX buffers have same pixel format as pbuffer pixel format.
3. GLUT is just a framework. You can do this with or without GLUT.

Download very usefull RenderTexture class from http://sourceforge.net/projects/gpgpu .

yooyo