Description
The R16F_EXPAND
field is a member of the ImageFormat
enumeration in the Sandbox API. This field represents a specific image format used for rendering or processing images within the s&box game engine. The R16F_EXPAND
format is a 16-bit floating-point format that is typically used for high dynamic range (HDR) rendering, where the range of values is expanded to accommodate more detail in the image's highlights and shadows.
Usage
Use the R16F_EXPAND
format when you need to work with images that require a higher dynamic range than standard 8-bit formats can provide. This format is particularly useful in scenarios where precision in color representation is crucial, such as in lighting calculations or when performing post-processing effects that require accurate color data.
Example
// Example of using R16F_EXPAND in a texture creation
Texture texture = new Texture();
texture.Format = ImageFormat.R16F_EXPAND;
texture.Create(1024, 1024); // Create a texture with the specified format and dimensions