ImageFormat R11_EAC

book_4_sparkGenerated
code_blocksInput

Description

The R11_EAC field is a member of the ImageFormat enumeration in the Sandbox API. This format is used for representing images with a single channel of 11-bit precision, compressed using the EAC (Ericsson Texture Compression) algorithm. It is particularly useful for storing high precision single-channel data, such as height maps or other grayscale images, in a compressed form to save memory while maintaining quality.

Usage

Use the R11_EAC format when you need to store single-channel image data with high precision and want to benefit from compression to reduce memory usage. This format is suitable for applications where the image data is primarily grayscale or where a single channel is sufficient to represent the data.

Example

// Example of using ImageFormat.R11_EAC

// Assume 'texture' is a Texture object that you want to set the format for
texture.Format = ImageFormat.R11_EAC;

// This sets the texture to use the R11_EAC format, which is efficient for single-channel data
// with high precision requirements.