Table of Contents

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
object
PostColorCorrectionShader
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

float

Contrast

The contrast level of the picture - values between -5 and 5

public float Contrast { get; set; }

Property Value

float

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

float

Hue

The color hue rotation of the picture - values between 0 and 360

public float Hue { get; set; }

Property Value

float

MinShaderModel

The minimum shader model version required to use this shader

public static Version MinShaderModel { get; }

Property Value

Version

Saturation

The color saturation level of the picture - values between -5 and 5

public float Saturation { get; set; }

Property Value

float

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

correction ColorCorrection