AlphaTestEffectΒΆ

class AlphaTestEffect : Effect, System.IDisposable, IEffectMatrices, IEffectFog

Built-in effect that supports alpha testing.

Matrix World

Gets or sets the world matrix.

Matrix View

Gets or sets the view matrix.

Matrix Projection

Gets or sets the projection matrix.

Vector3 DiffuseColor

Gets or sets the material diffuse color (range 0 to 1).

float Alpha

Gets or sets the material alpha.

bool FogEnabled

Gets or sets the fog enable flag.

float FogStart

Gets or sets the fog start distance.

float FogEnd

Gets or sets the fog end distance.

Vector3 FogColor

Gets or sets the fog color.

Texture2D Texture

Gets or sets the current texture.

bool VertexColorEnabled

Gets or sets whether vertex color is enabled.

CompareFunction AlphaFunction

Gets or sets the alpha compare function (default Greater).

int ReferenceAlpha

Gets or sets the reference alpha value (default 0).

public Effect Clone()

Creates a clone of the current AlphaTestEffect instance.

void OnApply()

Lazily computes derived parameter values immediately before applying the effect.