Description
The R8G8B8A8_ETC2_EAC
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This format represents an image format that uses the ETC2 compression with EAC (Explicit Alpha Channel) for RGBA data. It is designed to efficiently compress images with transparency while maintaining a high level of visual fidelity.
Usage
Use ImageFormat.R8G8B8A8_ETC2_EAC
when you need to specify an image format that supports high-quality compression with an alpha channel. This is particularly useful for textures in 3D applications where memory efficiency and image quality are both important.
Example
// Example of using R8G8B8A8_ETC2_EAC in a texture loading function
Texture texture = new Texture("path/to/texture.png", ImageFormat.R8G8B8A8_ETC2_EAC);
// This will load the texture using the specified format, ensuring efficient memory usage
// while maintaining image quality with transparency support.