[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] gamma/color profile and sRGB



On Tue, Nov 25, 2014 at 1:32 AM, Kenneth Russell <kbr@google.com> wrote:
It would be more effective to do the following instead:

1. Figure out the interactions with WebGL 2.0 / OpenGL ES 3.0
Neither OpenGL ES 3.0 or 3.1 support TEXTURE_SRGB_DECODE as a textureParameter.
 
2. Spec out a new context creation attribute for WebGL 2.0 adding
support for allocating an sRGB drawing buffer
Which can fail unless you have support for TEXTURE_SRGB_DECODE so you can read out raw values from an sRGB texture for use in a non-linear color space compositor.
 
3. Define a new extension for WebGL 2.0 exposing this functionality
That's fine, whatever makes that problem go away in the future.