/// <summary> /// Initializes a new instance of the <see cref="BasicEffectBinding"/> class. /// </summary> /// <param name="graphicsService">The graphics service.</param> /// <param name="opaqueData">The opaque data. Can be <see langword="null"/>.</param> public BasicEffectBinding(IGraphicsService graphicsService, IDictionary <string, object> opaqueData) : base(graphicsService, graphicsService.GetBasicEffect(), opaqueData) { LightingEnabled = true; // BasicEffect.PreferPerPixelLighting is true by default. But per-pixel // lighting kill performance on WP7. --> Change the default to false. PreferPerPixelLighting = false; }