Table of Contents

Class AdjustSaturationProperties

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

Shader properties for the adjust-saturation post-processing effect.

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

Properties

Saturation

Saturation.

public float Saturation { get; set; }

Property Value

float

Remarks

1 = unchanged 0 = completely grayscale. Values below 1 desaturate. Values above 1 enhance saturation.

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).