ImageFormat RGBA16161616F

book_4_sparkGenerated
code_blocksInput

Description

The RGBA16161616F field is a member of the ImageFormat enumeration in the Sandbox namespace. This format represents a 64-bit floating-point RGBA image format, where each channel (Red, Green, Blue, and Alpha) is stored as a 16-bit floating-point value. This format is typically used for high dynamic range (HDR) images, allowing for a wide range of color values and greater precision in color representation.

Usage

Use the RGBA16161616F format when you need to store images with high precision and a wide range of color values, such as in HDR rendering or when performing complex image processing tasks that require floating-point precision.

Example

// Example of using RGBA16161616F in a texture creation
Texture texture = new Texture( width: 1024, height: 1024, format: ImageFormat.RGBA16161616F );

// Use the texture in a material or rendering pipeline
Material material = new Material();
material.SetTexture("_MainTex", texture);