EffectStateManager.LightEnable Method |
Language: |
Enables or disables a light.
Visual Basic .NET MustOverride Public Sub LightEnable( _
ByVal lightIndex As Integer, _
ByVal isEnabled As Boolean _
)C# public abstract void LightEnable(
int lightIndex,
bool isEnabled
);Managed C++ public: virtual void LightEnable(
int lightIndex,
bool isEnabled
) = 0;JScript .NET public abstract function LightEnable(
lightIndex : int,
isEnabled : boolean
);
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.
LightEnable is a user-implemented method that is called from an effect during rendering.
Feedback? Please provide us with your comments on this topic.