public final class DirectionalLight
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
Enabled
Gets or sets light enable flag.
|
Constructor and Description |
---|
DirectionalLight(EffectParameter directionParameter,
EffectParameter diffuseColorParameter,
EffectParameter specularColorParameter,
DirectionalLight cloneSource)
Creates a new DirectionalLight instance, with or without a copy of a DirectionalLight instance.
|
Modifier and Type | Method and Description |
---|---|
Vector3 |
getDiffuseColor()
Gets or sets the diffuse color of the light.
|
Vector3 |
getDirection()
Gets the light direction.
|
Vector3 |
getSpecularColor()
Gets the specular color of the light.
|
void |
setDiffuseColor(Vector3 value)
Sets the diffuse color of the light.
|
void |
setDirection(Vector3 value)
Sets the light direction.
|
void |
setSpecularColor(Vector3 value)
Sets the specular color of the light.
|
public DirectionalLight(EffectParameter directionParameter, EffectParameter diffuseColorParameter, EffectParameter specularColorParameter, DirectionalLight cloneSource)
directionParameter
- The light direction.diffuseColorParameter
- The diffuse color.specularColorParameter
- The specular color.cloneSource
- The cloned instance to copy from.public Vector3 getDiffuseColor()
public void setDiffuseColor(Vector3 value)
value
- The new diffuse color of the light.public Vector3 getDirection()
public void setDirection(Vector3 value)
value
- The new direction of the light.public Vector3 getSpecularColor()
public void setSpecularColor(Vector3 value)
value
- The new specular color of the light.