format
and internalformat
parameters: SRGB_EXT
and SRGB_ALPHA_EXT
format
parameter: SRGB_EXT
and SRGB_ALPHA_EXT
internalformat
parameter: SRGB_ALPHA8_EXT
pname
parameter: FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT
var ext = gl.getExtension('EXT_sRGB'); var texture = gl.createTexture(); gl.bindTexture(gl.TEXTURE_2D, texture); texImage2D(gl.TEXTURE_2D, 0, ext.SRGB_EXT, 256, 256, 0, ext.SRGB_EXT, gl.UNSIGNED_BYTE, data);