Description
The LINEAR_RGBA8888
field is a member of the ImageFormat
enumeration in the Sandbox namespace. This field represents an image format where the color data is stored in a linear color space with 8 bits per channel for red, green, blue, and alpha components. This format is commonly used for images that require high color fidelity and transparency support.
Usage
Use the LINEAR_RGBA8888
format when you need to work with images that require linear color space processing and full RGBA color channels. This format is suitable for high-quality rendering tasks where accurate color representation is crucial.
Example
// Example of using LINEAR_RGBA8888 in a texture loading function
Texture texture = Texture.Load("path/to/texture.png", ImageFormat.LINEAR_RGBA8888);
// Use the texture in a material
Material material = new Material();
material.SetTexture("Albedo", texture);