Class DualTextureEffect
Built-in effect that supports two-layer multitexturing.
public class DualTextureEffect : Effect, IDisposable, IEffectMatrices, IEffectFog
- Inheritance
-
DualTextureEffect
- Implements
- Inherited Members
Constructors
DualTextureEffect(DualTextureEffect)
Creates a new DualTextureEffect by cloning parameter settings from an existing instance.
protected DualTextureEffect(DualTextureEffect cloneSource)
Parameters
cloneSource
DualTextureEffect
DualTextureEffect(GraphicsDevice)
Creates a new DualTextureEffect with default parameter settings.
public DualTextureEffect(GraphicsDevice device)
Parameters
device
GraphicsDevice
Properties
Alpha
Gets or sets the material alpha.
public float Alpha { get; set; }
Property Value
DiffuseColor
Gets or sets the material diffuse color (range 0 to 1).
public Vector3 DiffuseColor { get; set; }
Property Value
FogColor
Gets or sets the fog color.
public Vector3 FogColor { get; set; }
Property Value
FogEnabled
Gets or sets the fog enable flag.
public bool FogEnabled { get; set; }
Property Value
FogEnd
Gets or sets the fog end distance.
public float FogEnd { get; set; }
Property Value
FogStart
Gets or sets the fog start distance.
public float FogStart { get; set; }
Property Value
Projection
Gets or sets the projection matrix.
public Matrix Projection { get; set; }
Property Value
Texture
Gets or sets the current base texture.
public Texture2D Texture { get; set; }
Property Value
Texture2
Gets or sets the current overlay texture.
public Texture2D Texture2 { get; set; }
Property Value
VertexColorEnabled
Gets or sets whether vertex color is enabled.
public bool VertexColorEnabled { get; set; }
Property Value
View
Gets or sets the view matrix.
public Matrix View { get; set; }
Property Value
World
Gets or sets the world matrix.
public Matrix World { get; set; }
Property Value
Methods
Clone()
Creates a clone of the current DualTextureEffect instance.
public override Effect Clone()
Returns
OnApply()
Lazily computes derived parameter values immediately before applying the effect.
protected override void OnApply()