Description
The RG11_EAC
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This format is used for representing images with two channels, each channel having 11 bits of precision. It is part of the ETC2/EAC compressed texture formats, which are commonly used for efficient texture storage and rendering in graphics applications.
Usage
Use ImageFormat.RG11_EAC
when you need to work with textures that require two channels with high precision, such as normal maps or other data textures where the extra precision is beneficial. This format is particularly useful in scenarios where memory efficiency is crucial, as it provides a good balance between quality and storage size.
Example
// Example of using ImageFormat.RG11_EAC
Texture texture = new Texture("path/to/texture", ImageFormat.RG11_EAC);
// Use the texture in a material or rendering pipeline
Material material = new Material();
material.SetTexture("_MainTex", texture);