Description
The ATI2N
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This enumeration is used to specify different image formats that can be used within the s&box environment. The ATI2N
format is a specific type of compressed texture format, often used for normal maps due to its efficient storage and decompression capabilities.
Usage
Use the ATI2N
format when you need to store normal maps or other textures that benefit from compression, particularly in scenarios where memory usage is a concern. This format is part of the ImageFormat
enum, which can be used to specify the desired format when loading or processing images in s&box.
Example
// Example of using ImageFormat.ATI2N
Texture texture = Texture.Load("path/to/texture", ImageFormat.ATI2N);
// Use the texture in a material or other rendering context
Material material = new Material();
material.SetTexture("NormalMap", texture);