The format of a pixel, i.e., the number of components it has and what they represent.
Properties:
Name | Type | Description |
---|---|---|
DEPTH_COMPONENT |
Number | A pixel format containing a depth value. |
DEPTH_STENCIL |
Number | A pixel format containing a depth and stencil value, most often used with PixelDatatype.UNSIGNED_INT_24_8 . |
ALPHA |
Number | A pixel format containing an alpha channel. |
RGB |
Number | A pixel format containing red, green, and blue channels. |
RGBA |
Number | A pixel format containing red, green, blue, and alpha channels. |
LUMINANCE |
Number | A pixel format containing a luminance (intensity) channel. |
LUMINANCE_ALPHA |
Number | A pixel format containing luminance (intensity) and alpha channels. |
RGB_DXT1 |
Number | A pixel format containing red, green, and blue channels that is DXT1 compressed. |
RGBA_DXT1 |
Number | A pixel format containing red, green, blue, and alpha channels that is DXT1 compressed. |
RGBA_DXT3 |
Number | A pixel format containing red, green, blue, and alpha channels that is DXT3 compressed. |
RGBA_DXT5 |
Number | A pixel format containing red, green, blue, and alpha channels that is DXT5 compressed. |
RGB_PVRTC_4BPPV1 |
Number | A pixel format containing red, green, and blue channels that is PVR 4bpp compressed. |
RGB_PVRTC_2BPPV1 |
Number | A pixel format containing red, green, and blue channels that is PVR 2bpp compressed. |
RGBA_PVRTC_4BPPV1 |
Number | A pixel format containing red, green, blue, and alpha channels that is PVR 4bpp compressed. |
RGBA_PVRTC_2BPPV1 |
Number | A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed. |
RGBA_ASTC |
Number | A pixel format containing red, green, blue, and alpha channels that is ASTC compressed. |
RGB_ETC1 |
Number | A pixel format containing red, green, and blue channels that is ETC1 compressed. |
RGB8_ETC2 |
Number | A pixel format containing red, green, and blue channels that is ETC2 compressed. |
RGBA8_ETC2_EAC |
Number | A pixel format containing red, green, blue, and alpha channels that is ETC2 compressed. |
RGBA_BC7 |
Number | A pixel format containing red, green, blue, and alpha channels that is BC7 compressed. |
Members
A pixel format containing an alpha channel.
-
Default Value:
WebGLConstants.ALPHA
A pixel format containing a depth value.
-
Default Value:
WebGLConstants.DEPTH_COMPONENT
A pixel format containing a depth and stencil value, most often used with
PixelDatatype.UNSIGNED_INT_24_8
.
-
Default Value:
WebGLConstants.DEPTH_STENCIL
A pixel format containing a luminance (intensity) channel.
-
Default Value:
WebGLConstants.LUMINANCE
A pixel format containing luminance (intensity) and alpha channels.
-
Default Value:
WebGLConstants.LUMINANCE_ALPHA
A pixel format containing red, green, and blue channels.
-
Default Value:
WebGLConstants.RGB
A pixel format containing red, green, and blue channels that is ETC2 compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGB8_ETC2
A pixel format containing red, green, and blue channels that is DXT1 compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGB_S3TC_DXT1_EXT
A pixel format containing red, green, and blue channels that is ETC1 compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGB_ETC1_WEBGL
A pixel format containing red, green, and blue channels that is PVR 2bpp compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGB_PVRTC_2BPPV1_IMG
A pixel format containing red, green, and blue channels that is PVR 4bpp compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGB_PVRTC_4BPPV1_IMG
A pixel format containing red, green, blue, and alpha channels.
-
Default Value:
WebGLConstants.RGBA
A pixel format containing red, green, blue, and alpha channels that is ETC2 compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGBA8_ETC2_EAC
A pixel format containing red, green, blue, and alpha channels that is ASTC compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGBA_ASTC_4x4_WEBGL
A pixel format containing red, green, blue, and alpha channels that is BC7 compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGBA_BPTC_UNORM
A pixel format containing red, green, blue, and alpha channels that is DXT1 compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGBA_S3TC_DXT1_EXT
A pixel format containing red, green, blue, and alpha channels that is DXT3 compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGBA_S3TC_DXT3_EXT
A pixel format containing red, green, blue, and alpha channels that is DXT5 compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGBA_S3TC_DXT5_EXT
A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG
A pixel format containing red, green, blue, and alpha channels that is PVR 4bpp compressed.
-
Default Value:
WebGLConstants.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG