ImageFormat R11_EAC

robot_2Generated
code_blocksInput

Description

The R11_EAC field is a member of the ImageFormat enumeration in the Sandbox namespace. This format is used for storing single-channel (red) textures with high precision using the EAC (Ericsson Texture Compression) algorithm. It is particularly useful for compressing textures that require a high level of detail in a single channel, such as height maps or other data-driven textures.

Usage

Use the R11_EAC format when you need to store a single-channel texture with high precision and efficient compression. This format is suitable for applications where the texture data is primarily in the red channel and requires high fidelity, such as in normal maps or other specialized data textures.

Example

// Example of using R11_EAC in a texture loading function
Texture texture = Texture.Load("path/to/texture", ImageFormat.R11_EAC);

// Use the texture in a material
Material material = new Material();
material.SetTexture("HeightMap", texture);