Class PostColorCorrectionShader
- Namespace
- OmegaEngine.Graphics.Shaders
- Assembly
- OmegaEngine.dll
A post-screen shader for applying TV-like settings like brightness, contrast, hue, gamma, etc.
public class PostColorCorrectionShader : PostShader, IDisposable
- Inheritance
-
objectPostColorCorrectionShader
- Implements
- Inherited Members
Properties
Brightness
How bright the picture should be - values between 0 (black) and 5 (5x normal)
public float Brightness { get; set; }
Property Value
Contrast
The contrast level of the picture - values between -5 and 5
public float Contrast { get; set; }
Property Value
Gamma
The gamma correction value - values between 0.1 and 5.0 (1 for no correction; 2.2 for sRGB)
public float Gamma { get; set; }
Property Value
Hue
The color hue rotation of the picture - values between 0 and 360
public float Hue { get; set; }
Property Value
MinShaderModel
The minimum shader model version required to use this shader
public static Version MinShaderModel { get; }
Property Value
Saturation
The color saturation level of the picture - values between -5 and 5
public float Saturation { get; set; }
Property Value
Methods
OnEngineSet()
Hook that is called when Engine is set for the first time.
protected override void OnEngineSet()
SetParameters(ColorCorrection)
Sets multiple color correction parameters in one goe.
public void SetParameters(ColorCorrection correction)
Parameters
correctionColorCorrection