DualTextureEffectΒΆ

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

Built-in effect that supports two-layer multitexturing.

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 base texture.

Texture2D Texture2

Gets or sets the current overlay texture.

bool VertexColorEnabled

Gets or sets whether vertex color is enabled.

public Effect Clone()

Creates a clone of the current DualTextureEffect instance.

void OnApply()

Lazily computes derived parameter values immediately before applying the effect.