Table of Contents

Class TriToneMapProperties

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

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

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

Properties

HighColor

Color mapped to the highlight (high luminance) region.

public Color HighColor { get; set; }

Property Value

Color

HighValue

Upper luminance threshold in the range [0, 1].

public float HighValue { get; set; }

Property Value

float

LowColor

Color mapped to the shadow (low luminance) region.

public Color LowColor { get; set; }

Property Value

Color

LowValue

Lower luminance threshold in the range [0, 1].

public float LowValue { get; set; }

Property Value

float

MidColor

Color mapped to the midtone region.

public Color MidColor { get; set; }

Property Value

Color

MidValue

Mid luminance threshold in the range [0, 1].

public float MidValue { 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).