PixelFormat

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

static constant Cesium.PixelFormat.ALPHA : Number

A pixel format containing an alpha channel.
Default Value: WebGLConstants.ALPHA

static constant Cesium.PixelFormat.DEPTH_COMPONENT : Number

A pixel format containing a depth value.
Default Value: WebGLConstants.DEPTH_COMPONENT

static constant Cesium.PixelFormat.DEPTH_STENCIL : Number

A pixel format containing a depth and stencil value, most often used with PixelDatatype.UNSIGNED_INT_24_8.
Default Value: WebGLConstants.DEPTH_STENCIL

static constant Cesium.PixelFormat.LUMINANCE : Number

A pixel format containing a luminance (intensity) channel.
Default Value: WebGLConstants.LUMINANCE

static constant Cesium.PixelFormat.LUMINANCE_ALPHA : Number

A pixel format containing luminance (intensity) and alpha channels.
Default Value: WebGLConstants.LUMINANCE_ALPHA

static constant Cesium.PixelFormat.RGB : Number

A pixel format containing red, green, and blue channels.
Default Value: WebGLConstants.RGB

static constant Cesium.PixelFormat.RGB8_ETC2 : Number

A pixel format containing red, green, and blue channels that is ETC2 compressed.
Default Value: WebGLConstants.COMPRESSED_RGB8_ETC2

static constant Cesium.PixelFormat.RGB_DXT1 : Number

A pixel format containing red, green, and blue channels that is DXT1 compressed.
Default Value: WebGLConstants.COMPRESSED_RGB_S3TC_DXT1_EXT

static constant Cesium.PixelFormat.RGB_ETC1 : Number

A pixel format containing red, green, and blue channels that is ETC1 compressed.
Default Value: WebGLConstants.COMPRESSED_RGB_ETC1_WEBGL

static constant Cesium.PixelFormat.RGB_PVRTC_2BPPV1 : Number

A pixel format containing red, green, and blue channels that is PVR 2bpp compressed.
Default Value: WebGLConstants.COMPRESSED_RGB_PVRTC_2BPPV1_IMG

static constant Cesium.PixelFormat.RGB_PVRTC_4BPPV1 : Number

A pixel format containing red, green, and blue channels that is PVR 4bpp compressed.
Default Value: WebGLConstants.COMPRESSED_RGB_PVRTC_4BPPV1_IMG

static constant Cesium.PixelFormat.RGBA : Number

A pixel format containing red, green, blue, and alpha channels.
Default Value: WebGLConstants.RGBA

static constant Cesium.PixelFormat.RGBA8_ETC2_EAC : Number

A pixel format containing red, green, blue, and alpha channels that is ETC2 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA8_ETC2_EAC

static constant Cesium.PixelFormat.RGBA_ASTC : Number

A pixel format containing red, green, blue, and alpha channels that is ASTC compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_ASTC_4x4_WEBGL

static constant Cesium.PixelFormat.RGBA_BC7 : Number

A pixel format containing red, green, blue, and alpha channels that is BC7 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_BPTC_UNORM

static constant Cesium.PixelFormat.RGBA_DXT1 : Number

A pixel format containing red, green, blue, and alpha channels that is DXT1 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_S3TC_DXT1_EXT

static constant Cesium.PixelFormat.RGBA_DXT3 : Number

A pixel format containing red, green, blue, and alpha channels that is DXT3 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_S3TC_DXT3_EXT

static constant Cesium.PixelFormat.RGBA_DXT5 : Number

A pixel format containing red, green, blue, and alpha channels that is DXT5 compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_S3TC_DXT5_EXT

static constant Cesium.PixelFormat.RGBA_PVRTC_2BPPV1 : Number

A pixel format containing red, green, blue, and alpha channels that is PVR 2bpp compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG

static constant Cesium.PixelFormat.RGBA_PVRTC_4BPPV1 : Number

A pixel format containing red, green, blue, and alpha channels that is PVR 4bpp compressed.
Default Value: WebGLConstants.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG