EffectStateManager.LightEnable(Int32,Boolean) Method (Microsoft.DirectX.Direct3D)
Enables or disables a light.
Definition
Visual Basic MustOverride Public Sub LightEnable( _
ByVal lightIndex As Integer, _
ByVal isEnabled As Boolean _
)C# public abstract void LightEnable(
int lightIndex,
bool isEnabled
);C++ public:
virtual void LightEnable(
int lightIndex,
bool isEnabled
) abstract;JScript public abstract function LightEnable(
lightIndex : int,
isEnabled : boolean
);
Parameters
lightIndex System.Int32
An integer that represents the index of the light to enable or disable.isEnabled System.Boolean
Set to true to enable the light. Set to false to disable the light.
Remarks
LightEnable is a user-implemented method that is called from an effect during rendering.