FBO + Accumulation buffer support?
Hi,
I'm using FBO for multiple lights simulation in Geforce 8800 GTX. Does FBO supports accumulation buffer? It used to support only at normal framebuffer not in 32bit floating point FBO a year ago. I know a blending function can simluate the accumulation but I'd rather use accumulation buffer. Many thanks for any comments.
If you make a GL_RGBA16 format texture, then it will do the job.
no, you can't attach a accum buffer to a FBO.
no, you can't attach a accum buffer to a FBO.
It works. Geforce 8800 supports that format. You probably would want to scale down the values that you are adding up. For example, in your shader you can do
gl_FragColor = total * 0.3;
and also setup the additive blending
glBlendFunc(GL_ONE, GL_ONE);
glEnable(GL_BLEND);
gl_FragColor = total * 0.3;
and also setup the additive blending
glBlendFunc(GL_ONE, GL_ONE);
glEnable(GL_BLEND);
Also, doesn't work doesn't mean anything. Do you get errors? Corrupted textures? Black textures? Something? Also posting testing code is useful :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement