Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DirectionalLight Constructor

Creates a new DirectionalLight instance, with or without a copy of a DirectionalLight instance.

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

public DirectionalLight (
         EffectParameter directionParameter,
         EffectParameter diffuseColorParameter,
         EffectParameter specularColorParameter,
         DirectionalLight cloneSource


Type: EffectParameter
The light direction.
Type: EffectParameter
The diffuse color.
Type: EffectParameter
The specular color.
Type: DirectionalLight
The cloned instance to copy from.

The initial parameter values are either copied from the cloned object or set to default values (if the cloned object is NULL). The three EffectParameters are updated whenever the direction, diffuse color, or specular color properties are changed; or you can set these to NULL if you are using the cloned object.

Xbox 360, Windows 7, Windows Vista, Windows XP
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.