book_4_sparkGenerated
code_blocksInput

Description

The ATI2N field is a member of the ImageFormat enumeration in the Sandbox namespace. It represents a specific image format used for texture compression. The ATI2N format is commonly used for compressing normal maps, providing a good balance between quality and compression ratio.

This format is also known as BC5, which is a block compression format that stores two channels of data, typically used for storing normal map data in a compressed form. It is particularly useful in graphics applications where memory efficiency is crucial.

Usage

Use the ATI2N format when you need to compress normal maps or other two-channel data efficiently. This format is suitable for applications where maintaining a high level of detail in normal maps is important, while also reducing the memory footprint.

To use this format, specify ImageFormat.ATI2N when setting the image format for a texture or when performing operations that require specifying an image format.

Example

// Example of using ATI2N format in a texture
Texture texture = new Texture();
texture.Format = ImageFormat.ATI2N;

// Load a normal map with ATI2N compression
texture.Load("path/to/normalmap.dds");