Table of Contents

Class DitherTextureBiasProperties

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

Shader properties for the dither texture bias post-processing effect.

[Serializable]
public class DitherTextureBiasProperties : ShaderProperties
Inheritance
DitherTextureBiasProperties
Inherited Members

Properties

DitherAmountMax

Gets or sets the maximum dither bias, in the range [-1, 1].

public float DitherAmountMax { get; set; }

Property Value

float

DitherAmountMin

Gets or sets the minimum dither bias, in the range [-1, 1].

public float DitherAmountMin { get; set; }

Property Value

float

DitherPatternTexture

Gets or sets the dither pattern texture.

public Texture DitherPatternTexture { get; set; }

Property Value

Texture

DitherPatternTilingOffset

Gets or sets the tiling offset of the dither pattern texture.

public Vector2 DitherPatternTilingOffset { get; set; }

Property Value

Vector2

DitherPatternTilingScale

Gets or sets the tiling scale of the dither pattern texture.

public Vector2 DitherPatternTilingScale { get; set; }

Property Value

Vector2

LevelCount

Gets or sets the number of quantization levels per color channel.

public int3 LevelCount { get; set; }

Property Value

int3

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.

Smoothness

Gets or sets the smoothness of the dither transition, in the range [0, 1].

public float Smoothness { get; set; }

Property Value

float

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