AlphaTestEffect Class

Contains a configurable effect that supports alpha testing.


Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)

public class AlphaTestEffect : Effect, 
	IEffectMatrices, IEffectFog

The AlphaTestEffect type exposes the following members.

Public methodAlphaTestEffectInitializes a new instance of the AlphaTestEffect class.

Public propertyAlphaGets or sets the material alpha which determines its transparency. Range is between 1 (fully opaque) and 0 (fully transparent).
Public propertyAlphaFunctionGets or sets the compare function for alpha test. The default value is Greater.
Public propertyCurrentTechniqueGets or sets the active technique. (Inherited from Effect.)
Public propertyDiffuseColorGets or sets the diffuse color for a material, the range of color values is from 0 to 1.
Public propertyFogColorGets or sets the fog color, the range of color values is from 0 to 1.
Public propertyFogEnabledGets or sets the fog enable flag.
Public propertyFogEndGets or sets the maximum z value for fog.
Public propertyFogStartGets or sets the minimum z value for fog.
Public propertyIsDisposedGets a value that indicates whether the object is disposed. (Inherited from Effect.)
Public propertyProjectionGets or sets the projection matrix.
Public propertyReferenceAlphaGets or sets the reference alpha value, the default value is 0.
Public propertyTechniquesGets a collection of techniques that are defined for this effect. (Inherited from Effect.)
Public propertyTextureGets or sets the current texture.
Public propertyVertexColorEnabledGets or sets whether vertex color is enabled.
Public propertyViewGets or sets the view matrix.
Public propertyWorldGets or sets the world matrix.

Public methodDispose()Immediately releases the unmanaged resources used by this object. (Inherited from Effect.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the Effect and optionally releases the managed resources. (Inherited from Effect.)
Protected methodFinalizeAllows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object. (Inherited from Effect.)


Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions