Table of Contents

Class QuadToneMapProperties

Namespace
Gamelogic.Fx.PostProcessing.Effects
Assembly
Gamelogic.Fx.dll

Shader properties for the quad-tone map post-processing effect.

[Serializable]
public sealed class QuadToneMapProperties : ShaderProperties
Inheritance
QuadToneMapProperties
Inherited Members

Properties

HighColor

Color used for values above Mid1Value.

public Color HighColor { get; set; }

Property Value

Color

HighValue

Upper threshold for lightness.

public float HighValue { get; set; }

Property Value

float

LowColor

Color used for values below LowValue.

public Color LowColor { get; set; }

Property Value

Color

LowValue

Lower threshold for lightness.

public float LowValue { get; set; }

Property Value

float

Mid0Color

Color used for the first mid range (between LowValue and Mid0Value).

public Color Mid0Color { get; set; }

Property Value

Color

Mid0Value

Threshold separating low and mid0 regions.

public float Mid0Value { get; set; }

Property Value

float

Mid1Color

Color used for the second mid range (between Mid0Value and Mid1Value).

public Color Mid1Color { get; set; }

Property Value

Color

Mid1Value

Threshold separating mid0 and mid1 regions.

public float Mid1Value { get; set; }

Property Value

float

ShaderName

Gets the name of the shader used by this property set.

public override string ShaderName { get; }

Property Value

string

Remarks

This name is passed to the internal shader lookup system when the properties are enabled. It should match the full shader path as defined in the shader file.

Methods

SetMaterialProperties(Material)

Applies all shader-related properties to the given material.

public override void SetMaterialProperties(Material effectMaterial)

Parameters

effectMaterial Material

Remarks

Subclasses should override this method and set all relevant shader uniforms (for example, floats, vectors, colors, textures, and keywords).