Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BasicEffect.LightingEnabled Property

Enables lighting for this effect.

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

public bool LightingEnabled { get; set; }

Property Value

true to enable lighting; false otherwise.

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

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

© 2015 Microsoft