book_4_sparkGenerated
code_blocksInput

Description

The DXT3 field is a member of the ImageFormat enumeration in the Sandbox namespace. It represents a specific image format used for texture compression. DXT3 is a block compression format that provides a balance between image quality and file size, supporting explicit alpha channels. This format is particularly useful for textures that require alpha transparency with moderate quality.

Usage

Use the ImageFormat.DXT3 field when you need to specify the DXT3 compression format for textures in your application. This format is suitable for scenarios where you need to maintain alpha transparency while keeping the texture size relatively small.

Example

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

// Set the texture format to DXT3
texture.Format = ImageFormat.DXT3;

// Use the texture in a material
Material material = new Material();
material.SetTexture("Albedo", texture);