ImageFormat R11_EAC

book_4_sparkGenerated
code_blocksInput

Description

The R11_EAC field is a member of the ImageFormat enumeration in the Sandbox namespace. This format is used for representing images with a single channel of 11-bit precision, compressed using the Ericsson Texture Compression (ETC) algorithm. It is particularly useful for storing high precision single-channel data, such as height maps or other data where a single channel is sufficient.

Usage

Use ImageFormat.R11_EAC when you need to store or process images that require a single channel with high precision, and you want to take advantage of the compression benefits provided by the ETC algorithm. This format is suitable for applications where memory efficiency is important, and the precision of the single channel is critical.

Example

// Example of using ImageFormat.R11_EAC
Texture texture = new Texture("path/to/texture", ImageFormat.R11_EAC);

// Use the texture in a material or rendering pipeline
Material material = new Material();
material.SetTexture("_MainTex", texture);