GL_EXT_texture_sRGB_decode

Supported Hardware

Series6, Series6XE, Series6XT

Valid APIs

OpenGL ES 2.0, 3.x

Description

Textures in the sRGB colour space are, by default, implicitly converted to the linear colour space when sampled in a shader. However, there are use cases where a shader may wish to sample the raw sRGB data instead. This function provides a texture parameter which allows individual textures/samplers to choose to not perform the implicit decode.

Registry Link

http://www.khronos.org/registry/gles/extensions/EXT/texture_sRGB_decode.txt

Example

// Turn off the implicit decode for a sampler 
glSamplerParameteri(samplerName, GL_TEXTURE_SRGB_DECODE_EXT, GL_SKIP_DECODE_EXT);