OmegaEngine API
1.0.3
|
Color correction values for use in post-processing. More...
Public Member Functions | |
ColorCorrection (float brightness=1, float contrast=1, float saturation=1, float hue=0) | |
Creates a new color correction structure. More... | |
override string | ToString () |
bool | Equals (ColorCorrection other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
Static Public Member Functions | |
static ColorCorrection | SinusInterpolate (float factor, [NotNull] params ColorCorrection[] values) |
Performs smooth (sinus-based) interpolation between two or more value sets. More... | |
static | operator Vector4 (ColorCorrection correction) |
Convert ColorCorrection into Vector4 More... | |
static | operator ColorCorrection (Vector4 vector) |
Convert Vector4 into see ColorCorrection More... | |
static bool | operator== (ColorCorrection left, ColorCorrection right) |
static bool | operator != (ColorCorrection left, ColorCorrection right) |
Static Public Attributes | |
static readonly ColorCorrection | Default = new ColorCorrection(brightness: 1) |
No color change. More... | |
Properties | |
float | Brightness [get, set] |
How bright the picture should be - values between 0 (black) and 5 (5x normal). More... | |
float | Contrast [get, set] |
The contrast level of the picture - values between -5 and 5. More... | |
float | Saturation [get, set] |
The color saturation level of the picture - values between -5 and 5. More... | |
float | Hue [get, set] |
The color hue rotation of the picture - values between 0 and 360. More... | |
Color correction values for use in post-processing.
|
inline |
Creates a new color correction structure.
brightness | How bright the picture should be - values between 0 (black) and 5 (5x normal). |
contrast | The contrast level of the picture - values between -5 and 5. |
saturation | The color saturation level of the picture - values between -5 and 5. |
hue | The color hue rotation of the picture - values between 0 and 360. |
|
explicitstatic |
Convert Vector4 into see ColorCorrection
|
explicitstatic |
Convert ColorCorrection into Vector4
|
inlinestatic |
Performs smooth (sinus-based) interpolation between two or more value sets.
factor | A factor between 0 and values .Length. |
values | The value checkpoints. |
|
static |
No color change.
|
getset |
How bright the picture should be - values between 0 (black) and 5 (5x normal).
|
getset |
The contrast level of the picture - values between -5 and 5.
|
getset |
The color hue rotation of the picture - values between 0 and 360.
|
getset |
The color saturation level of the picture - values between -5 and 5.