Hacker News new | ask | show | jobs
by mungoman2 473 days ago
The blend operation happens on linearized values, so the frame buffer being gamma corrected is not a problem. 8-bit sRGB is a very good gamma corrected format.
1 comments

I’m pretty sure this wasn’t available on early GPUs. Additive blending with glBlendFunc(GL_ONE, GL_ONE) or its D3D equivalent just summed the new fragment with the frame buffer value.

Accumulating into an 8-bpc buffer will quickly artifact, so whether it’s acceptable to only do the blend operation in linear light (accumulating into a gamma-corrected frame buffer) depends on how many passes you’re rendering.