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 DXT5 format. This format is optimized for normal maps, which are used in 3D graphics to simulate the lighting of bumps and dents on a surface without using additional polygons.
Usage
Use ImageFormat.DXT5_NM
when you need to specify the image format for a texture that is a normal map and you want to take advantage of the DXT5 compression. This can help reduce the memory footprint of your textures while maintaining a good level of detail for normal maps.
Example
// Example of setting a texture's image format to DXT5_NM
Texture texture = new Texture();
texture.Format = ImageFormat.DXT5_NM;
// This will ensure the texture is treated as a normal map with DXT5 compression.