DualTextureEffect Class (Microsoft.Xna.Framework.Graphics)

Built-in effect that supports two-layer multitexturing.
System.Object
   Microsoft.Xna.Framework.Graphics.GraphicsResource
      Microsoft.Xna.Framework.Graphics.Effect
         Microsoft.Xna.Framework.Graphics.DualTextureEffect

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The DualTextureEffect type exposes the following members.

  Platforms Name Description
DualTextureEffect(GraphicsDevice) Creates a new DualTextureEffect with default parameter settings. 
DualTextureEffect(DualTextureEffect) Creates a new DualTextureEffect by cloning parameter settings from an existing instance. 
Top
  Platforms Name Description
Alpha Gets or sets the material alpha. 
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().)
Tag  (Inherited from GraphicsResource.)
Techniques  (Inherited from Effect.)
Texture Gets or sets the current base texture. 
Texture2 Gets or sets the current overlay 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().)
Top
  Platforms Name Description
Clone Creates a clone of the current DualTextureEffect 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.)
Top
  Platforms Name Description
Disposing  (Inherited from GraphicsResource.)
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop