Class ColorUtils
A set of color manipulation utilities.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class ColorUtils
Fields
Name | Description |
---|---|
s_Lens |
Factor used for our lens system w.r.t. exposure calculation. Modifying this will lead to a change on how linear exposure multipliers are computed from EV100 values (and viceversa). s_LensAttenuation models transmission attenuation and lens vignetting. Note that according to the standard ISO 12232, a lens saturates at s_LensAttenuation = 0.78f (under ISO 100). |
s_Light |
Calibration constant (K) used for our virtual reflected light meter. Modifying this will lead to a change on how average scene luminance gets mapped to exposure. |
Properties
Name | Description |
---|---|
lens |
Scale applied to exposure caused by lens imperfection. It is computed from s_LensAttenuation as follow: (78 / ( S * q )) where S = 100 and q = s_LensAttenuation |
Methods
Name | Description |
---|---|
CIExy |
CIE xy chromaticity to CAT02 LMS. http://en.wikipedia.org/wiki/LMS_color_space#CAT02 |
Color |
Converts white balancing parameter to LMS coefficients. |
Compute |
Computes an exposure value (EV100) from physical camera settings. |
Compute |
Computes an exposure value (EV100) from an average luminance value. |
Compute |
Computes the required ISO to reach |
Convert |
Converts an exposure value (EV100) to a linear multiplier. |
Convert |
Converts a linear multiplier to an exposure value (EV100). |
Luminance(in Color) | Returns the luminance of the specified color. The input is considered to be in linear space with sRGB primaries and a D65 white point. |
Prepare |
Pre-filters lift, gamma and gain trackball values for shader use. |
Prepare |
Pre-filters shadows, midtones and highlights trackball values for shader use. |
Prepare |
Pre-filters colors used for the split toning effect. |
Standard |
An analytical model of chromaticity of the standard illuminant, by Judd et al. http://en.wikipedia.org/wiki/Standard_illuminant#Illuminant_series_D Slightly modifed to adjust it with the D65 white point (x=0.31271, y=0.32902). |
To |
Converts a color value to its 32-bit hexadecimal representation. |
To |
Converts a 32-bit hexadecimal value to a color value. |