book_4_sparkGenerated
code_blocksInput

Description

The ATI1N field is a member of the ImageFormat enumeration in the Sandbox namespace. It represents a specific image format used for texture compression. The ATI1N format is a single-channel compression format, often used for storing grayscale images or single-channel data efficiently.

Usage

Use the ATI1N format when you need to compress single-channel textures, such as height maps or other grayscale images, to save memory and improve performance. This format is particularly useful in scenarios where color information is not required, and only a single channel is needed.

Example

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

// Check if the texture is using the ATI1N format
if (texture.Format == ImageFormat.ATI1N)
{
    // Perform operations specific to ATI1N format
    Console.WriteLine("Texture is using ATI1N format.");
}