Description
The R16F
field is a member of the ImageFormat
enumeration in the Sandbox API. It represents a specific image format where the image data is stored as a single 16-bit floating-point value per pixel. This format is typically used for high dynamic range (HDR) images where precision is more important than color depth.
Usage
Use the R16F
format when you need to store image data with a single channel and require high precision, such as in depth maps or other single-channel HDR data. This format is particularly useful in scenarios where the range and precision of the data are critical, and the data does not need to be represented in multiple color channels.
Example
// Example of using ImageFormat.R16F
// Assuming you have a method to create a texture
Texture texture = new Texture( width: 256, height: 256, format: ImageFormat.R16F );
// Use the texture in your application
// For example, setting it as a render target or using it in a shader