WEBGLCompressedTextureEtc
The WEBGL_compressed_texture_etc
extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.
Documentation WEBGL_compressed_texture_etc by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Static Members
COMPRESSED_R11_EAC: Int
One-channel (red) unsigned format compression.
COMPRESSED_SIGNED_R11_EAC: Int
One-channel (red) signed format compression.
COMPRESSED_RG11_EAC: Int
Two-channel (red and green) unsigned format compression.
COMPRESSED_SIGNED_RG11_EAC: Int
Two-channel (red and green) signed format compression.
COMPRESSED_RGB8_ETC2: Int
Compresses RGB8 data with no alpha channel.
COMPRESSED_SRGB8_ETC2: Int
Compresses sRGB8 data with no alpha channel.
COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: Int
Similar to RGB8_ETC
, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent.
COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: Int
Similar to SRGB8_ETC
, but with ability to punch through the alpha channel, which means to make it completely opaque or transparent.
COMPRESSED_RGBA8_ETC2_EAC: Int
Compresses RGBA8 data. The RGB part is encoded the same as RGB_ETC2
, but the alpha part is encoded separately.
COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: Int
Compresses sRGBA8 data. The sRGB part is encoded the same as SRGB_ETC2
, but the alpha part is encoded separately.