Description
The R32F
field is a member of the ImageFormat
enumeration in the Sandbox namespace. It represents a single-channel 32-bit floating-point image format. This format is typically used for high precision grayscale images where each pixel is represented by a 32-bit floating-point value.
Usage
Use ImageFormat.R32F
when you need to work with images that require high precision for a single channel, such as depth maps or other scientific data visualizations where floating-point precision is necessary.
Example
// Example of using ImageFormat.R32F
Texture texture = new Texture("path/to/texture", ImageFormat.R32F);
// Use the texture in a material or shader
Material material = new Material();
material.SetTexture("_MainTex", texture);