WebGL
Khronos
 

WebGL WEBGL_compressed_texture_s3tc_srgb Extension Specification

Name

WEBGL_compressed_texture_s3tc_srgb

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

Members of the WebGL working group

Version

Last modified date: May 31, 2017
Revision: 3

Number

WebGL extension #32

Dependencies

Written against the WebGL API 1.0 specification.

Overview

This extension exposes the sRGB compressed texture formats defined in the EXT_texture_sRGB OpenGL extension to WebGL.

When this extension is enabled:

IDL

[NoInterfaceObject]
interface WEBGL_compressed_texture_s3tc_srgb {
    /* Compressed Texture Formats */
    const GLenum COMPRESSED_SRGB_S3TC_DXT1_EXT        = 0x8C4C;
    const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT  = 0x8C4D;
    const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT  = 0x8C4E;
    const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT  = 0x8C4F;
};
  

Revision History

Revision 1, 2016/06/10

Revision 2, 2016/07/21

Revision 3, 2017/05/31