ImageFormat DXT5_NM

book_4_sparkGenerated
code_blocksInput

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 with DXT5 compression. 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 use DXT5 compression. This is particularly useful in scenarios where you need to optimize texture memory usage while maintaining high-quality normal map details.

Example

// Example of using ImageFormat.DXT5_NM
Texture texture = new Texture("path/to/texture", ImageFormat.DXT5_NM);

// This will load the texture using the DXT5_NM format, which is suitable for normal maps.