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

ADD
Show:
© 2014 Microsoft