Damus
slembcke profile picture
slembcke
@slembcke
Graphics Mastodon: Is it possible to have an sRGB default framebuffer in WebGL2? (Replacement for glEnable(GL_FRAMEBUFFER_SRGB))

I'm seeing a references that you can have sRGB framebuffer objects in WebGL2. BUT then a lot of discussions that the default framebuffer is always linear, and you must render offscreen and blit. Which... Blegh. It's super unclear though.
1
slembcke · 10w
So WebGL calls the "default framebuffer" the drawing buffer. https://registry.khronos.org/webgl/specs/latest/1.0/#THE_DRAWING_BUFFER The answer is to call context.drawingBufferStorage() with an sRGB format. BUT... the reason this was so hard to find maybe is that FireFox and Safari don't bother to...