Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Generic method for setting up texture effects.

Namespace: Visual3D.Graphics3D
Assembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public void AddEffect(
	TextureEffect effect
)
Public Sub AddEffect ( _
	effect As TextureEffect _
)

Parameters

effect
TextureEffect

Remarks

Allows you to specify effects directly by using the TextureEffectType enumeration. The arguments that go with it depend on the effect type. Only one effect of each type can be applied to a texture layer.

This method is used internally, but it is better generally for applications to use the more intuitive specialized methods such as SetEnvironmentMap and SetScroll.

See Also