3 ms·
https://www.opengl.org/registry/specs/EXT/framebuffer_sRGB.txt https://www.opengl.org/registry/specs/EXT/framebuffer_sRGB.t... https://www.opengl.org/wiki/Fram
by topkekz 12y ago
https://www.opengl.org/registry/specs/EXT/framebuffer_sRGB.txt https://www.opengl.org/registry/specs/EXT/framebuffer_sRGB.t...
https://www.opengl.org/wiki/Framebuffer#Colorspace https://www.opengl.org/wiki/Framebuffer#Colorspace
- socialist_coder 12y agoSo you're saying that in my shaders, as long as I have GL_FRAMEBUFFER_SRGB enabled, this conversion takes place automatically? Am I understanding the docs right? I'm asking because I'm a mobile game developer using Unity3d, and we have a fair amount of custom shaders, and I've never heard about this sRGB vs RGB colorspace thing before so I want to investigate. There's not much on google for GL_FRAMEBUFFER_SRGB + Unity3d. Maybe it's handled automatically or it's not even possible with openGL ES 2.0.
- topkekz 12y agoThe implicit conversion only happens when the internal format of the destination buffer is GL_SRGB8 or GL_SRGB8_ALPHA8