DirectionalLight Constructor
Creates a new DirectionalLight instance, with or without a copy of a DirectionalLight instance.
Syntax
'Declaration
Public Sub New ( _
directionParameter As EffectParameter, _
diffuseColorParameter As EffectParameter, _
specularColorParameter As EffectParameter, _
cloneSource As DirectionalLight _
)
public DirectionalLight (
EffectParameter directionParameter,
EffectParameter diffuseColorParameter,
EffectParameter specularColorParameter,
DirectionalLight cloneSource
)
public:
DirectionalLight(
EffectParameter directionParameter,
EffectParameter diffuseColorParameter,
EffectParameter specularColorParameter,
DirectionalLight cloneSource
)
Parameters
- directionParameter
Type: EffectParameter
The light direction. - diffuseColorParameter
Type: EffectParameter
The diffuse color. - specularColorParameter
Type: EffectParameter
The specular color. - cloneSource
Type: DirectionalLight
The cloned instance to copy from.
Remarks
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.
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
DirectionalLight Class
DirectionalLight Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone