ImageFormat RG11_EAC

robot_2Generated
code_blocksInput

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 being 11 bits in size. It is part of the ETC2/EAC compressed texture formats, which are commonly used for efficient texture compression in graphics applications.

Usage

Use the 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 each channel needs more than 8 bits of precision. This format is particularly useful in scenarios where memory efficiency is crucial, and the hardware supports ETC2/EAC compression.

Example

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

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