| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | SpotLight()
Constructs a new |
| public | SpotLight(float
the x coordinate of the light position x, float the y coordinate of the light position y, float the z coordinate of the light position z, Color4f the color of the light color)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public float[] | Returns: the normalized direction vector of this light sourceReturns a float array containing the normalized |
| public float[] | getNormalizedLightPosition()
Overrides com. Returns a float array containing the normalized |
| public float | Returns: the x coordinate of the direction vector for this lightReturns the x coordinate of the direction vector for this light. |
| public float | Returns: the y coordinate of the direction vector for this lightReturns the y coordinate of the direction vector for this light. |
| public float | Returns: the z coordinate of the direction vector for this lightReturns the z coordinate of the direction vector for this light. |
| public float | Returns: the specular exponent of this lightReturns the specular exponent, which controls the focus of this light source. |
| public void | setPointsAtX(float
the x coordinate of the direction vector for this light pointsAtX)Sets the x coordinate of the direction vector for this light. |
| public void | setPointsAtY(float
the y coordinate of the direction vector for this light pointsAtY)Sets the y coordinate of the direction vector for this light. |
| public void | setPointsAtZ(float
the z coordinate of the direction vector for this light pointsAtZ)Sets the z coordinate of the direction vector for this light. |
| public void | setSpecularExponent(float
the specular exponent of this light specularExponent)Sets the specular exponent, which controls the focus of this light source. |
| pointsAtX | back to summary |
|---|---|
| private float pointsAtX | |
| pointsAtY | back to summary |
|---|---|
| private float pointsAtY | |
| pointsAtZ | back to summary |
|---|---|
| private float pointsAtZ | |
| specularExponent | back to summary |
|---|---|
| private float specularExponent | |
| SpotLight | back to summary |
|---|---|
| public SpotLight() Constructs a new | |
| SpotLight | back to summary |
|---|---|
| public SpotLight(float x, float y, float z, Color4f color) Constructs a new
| |
| getNormalizedLightDirection | back to summary |
|---|---|
| public float[] getNormalizedLightDirection() Returns a float array containing the normalized
| |
| getNormalizedLightPosition | back to summary |
|---|---|
| public float[] getNormalizedLightPosition() Overrides com. Doc from com. Returns a float array containing the normalized
| |
| getPointsAtX | back to summary |
|---|---|
| public float getPointsAtX() Returns the x coordinate of the direction vector for this light.
| |
| getPointsAtY | back to summary |
|---|---|
| public float getPointsAtY() Returns the y coordinate of the direction vector for this light.
| |
| getPointsAtZ | back to summary |
|---|---|
| public float getPointsAtZ() Returns the z coordinate of the direction vector for this light.
| |
| getSpecularExponent | back to summary |
|---|---|
| public float getSpecularExponent() Returns the specular exponent, which controls the focus of this light source.
| |
| setPointsAtX | back to summary |
|---|---|
| public void setPointsAtX(float pointsAtX) Sets the x coordinate of the direction vector for this light.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
| |
| setPointsAtY | back to summary |
|---|---|
| public void setPointsAtY(float pointsAtY) Sets the y coordinate of the direction vector for this light.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
| |
| setPointsAtZ | back to summary |
|---|---|
| public void setPointsAtZ(float pointsAtZ) Sets the z coordinate of the direction vector for this light.
Min: n/a
Max: n/a
Default: 0.0
Identity: n/a
| |
| setSpecularExponent | back to summary |
|---|---|
| public void setSpecularExponent(float specularExponent) Sets the specular exponent, which controls the focus of this light source.
Min: 0.0
Max: 4.0
Default: 1.0
Identity: 1.0
| |