C# Class Microsoft.Xna.Framework.Graphics.AlphaTestEffect

Built-in effect that supports alpha testing.
Inheritance: Effect, IEffectMatrices, IEffectFog
Mostra file Open project: procfxgen/MGShaderEditor Class Usage Examples

Public Methods

Method Description
AlphaTestEffect ( GraphicsDevice device ) : Microsoft.Xna.Framework

Creates a new AlphaTestEffect with default parameter settings.

Clone ( ) : Effect

Creates a clone of the current AlphaTestEffect instance.

Protected Methods

Method Description
AlphaTestEffect ( AlphaTestEffect cloneSource ) : Microsoft.Xna.Framework

Creates a new AlphaTestEffect by cloning parameter settings from an existing instance.

OnApply ( ) : bool

Lazily computes derived parameter values immediately before applying the effect.

Private Methods

Method Description
CacheEffectParameters ( ) : void

Looks up shortcut references to our effect parameters.

Method Details

AlphaTestEffect() protected method

Creates a new AlphaTestEffect by cloning parameter settings from an existing instance.
protected AlphaTestEffect ( AlphaTestEffect cloneSource ) : Microsoft.Xna.Framework
cloneSource AlphaTestEffect
return Microsoft.Xna.Framework

AlphaTestEffect() public method

Creates a new AlphaTestEffect with default parameter settings.
public AlphaTestEffect ( GraphicsDevice device ) : Microsoft.Xna.Framework
device GraphicsDevice
return Microsoft.Xna.Framework

Clone() public method

Creates a clone of the current AlphaTestEffect instance.
public Clone ( ) : Effect
return Effect

OnApply() protected method

Lazily computes derived parameter values immediately before applying the effect.
protected OnApply ( ) : bool
return bool