[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] gamma/color profile and sRGB
OpenGL ES 2.0 doesn't have glBlitFramebuffer (but ES 3.0 has). glBlitFramebuffer can be substantially slower than a quadpass. It's also capable of performing interpolation, which suggests that at least some conversion rules still apply.
The OpenGL ES 3.0 specification states in section 4.3 Reading and Copying Pixels:
When values are taken from the read buffer, if the value of FRAMEBUFFER_-
ATTACHMENT_COLOR_ENCODING for the framebuffer attachment corresponding to
the read buffer is SRGB (see section 6.1.13), the red, green, and blue components
are converted from the non-linear sRGB color space according to equation 3.24.
FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING is framebuffer attachment tied. It can be queried by GetFramebufferAttachmentParameteriv but it can only be set by attaching an sRGB texture.