Description
The DXT5_NM
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents a specific image format used for storing normal maps in a compressed format. The DXT5_NM format is a variant of the DXT5 compression, optimized for normal maps, which are used in 3D graphics to simulate the details of a surface without increasing the polygon count.
Usage
Use the DXT5_NM
format when you need to store normal maps efficiently in your game or application. This format is particularly useful for reducing the memory footprint of textures while maintaining visual fidelity. It is commonly used in scenarios where normal maps are applied to 3D models to enhance their appearance with lighting effects.
Example
// Example of using DXT5_NM in a texture loading function
public void LoadTexture(string filePath)
{
Texture texture = new Texture(filePath, ImageFormat.DXT5_NM);
// Use the texture in your game or application
}