AlphaTestEffect Class (Microsoft.Xna.Framework.Graphics)

Built-in effect that supports alpha testing.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public class AlphaTestEffect : Effect, IEffectMatrices, IEffectFog

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The AlphaTestEffect type exposes the following members.

  Platforms Name Description
AlphaTestEffect(GraphicsDevice) Creates a new AlphaTestEffect with default parameter settings. 
AlphaTestEffect(AlphaTestEffect) Creates a new AlphaTestEffect by cloning parameter settings from an existing instance. 
  Platforms Name Description
Alpha Gets or sets the material alpha. 
AlphaFunction Gets or sets the alpha compare function (default Greater). 
CurrentTechnique  (Inherited from Effect.)
DiffuseColor Gets or sets the material diffuse color (range 0 to 1). 
FogColor The floating point fog color. (Implements IEffectFog.FogColor().)
FogEnabled Used to toggle the rendering of fog. (Implements IEffectFog.FogEnabled().)
FogEnd The world space distance from the camera at which fogging is fully applied. (Implements IEffectFog.FogEnd().)
FogStart The world space distance from the camera at which fogging begins. (Implements IEffectFog.FogStart().)
GraphicsDevice  (Inherited from GraphicsResource.)
IsDisposed  (Inherited from GraphicsResource.)
Name  (Inherited from GraphicsResource.)
Parameters  (Inherited from Effect.)
Projection Gets or sets the projection matrix. (Implements IEffectMatrices.Projection().)
ReferenceAlpha Gets or sets the reference alpha value (default 0). 
Tag  (Inherited from GraphicsResource.)
Techniques  (Inherited from Effect.)
Texture Gets or sets the current texture. 
VertexColorEnabled Gets or sets whether vertex color is enabled. 
View Gets or sets the view matrix. (Implements IEffectMatrices.View().)
World Gets or sets the world matrix. (Implements IEffectMatrices.World().)
  Platforms Name Description
Clone Creates a clone of the current AlphaTestEffect instance. (Overrides Effect.Clone().)
Dispose()  (Inherited from GraphicsResource.)
Dispose(bool) The method that derived classes should override to implement disposing of managed and native resources. (Inherited from Effect.)
Finalize  (Inherited from GraphicsResource.)
GraphicsDeviceResetting Called before the device is reset. Allows graphics resources to invalidate their state so they can be recreated after the device reset. Warning: This may be called after a call to Dispose() up until the resource is garbage collected. (Inherited from Effect.)
OnApply Lazily computes derived parameter values immediately before applying the effect. (Overrides Effect.OnApply().)
ToString  (Inherited from GraphicsResource.)
  Platforms Name Description
Disposing  (Inherited from GraphicsResource.)
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop