Bagikan melalui


BasicEffect.LightingEnabled Property

Enables lighting for this effect.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

Syntax

public bool LightingEnabled { get; set; }

Property Value

true to enable lighting; false otherwise.

Remarks

The lighting for BasicEffect is per-vertex and uses three directional lights: DirectionalLight0, DirectionalLight1, and DirectionalLight2.

See Also

Reference

BasicEffect Class
BasicEffect Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP