robot_2Generated
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, particularly useful for normal maps. The ATI2N format is also known as BC5, which is a block compression format that provides high-quality compression for two-channel data, such as normal maps.

Usage

Use the ATI2N format when you need to compress two-channel textures, such as normal maps, to reduce memory usage while maintaining high quality. This format is particularly beneficial in scenarios where texture memory is limited, and you need to optimize performance without sacrificing visual fidelity.

Example

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

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