Compartir a través de


IEffectLights Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets lighting parameters for the current effect.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)

Syntax

'Declaration
Public Interface IEffectLights
public interface IEffectLights

The IEffectLights type exposes the following members.

Properties

  Name Description
Public property AmbientLightColor Gets or sets the ambient light color for the current effect.
Public property DirectionalLight0 Gets the first directional light for the current effect.
Public property DirectionalLight1 Gets the second directional light for the current effect.
Public property DirectionalLight2 Gets the third directional light for the current effect.
Public property LightingEnabled Enables or disables lighting in an IEffectLights.

Top

Methods

  Name Description
Public method EnableDefaultLighting Enables default lighting for the current effect.

Top

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.