|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.Light
public class Light
Represents the state of a single light.
| Nested Class Summary | |
|---|---|
static class |
Light.Type
The basic light types. |
| Field Summary | |
|---|---|
Color4f |
ambient
The ambient light intensity. |
boolean |
castsShadows
A hint as to whether or not this light should cast shadows. |
float |
constantAttenuation
The light's constant attenuation. |
Color4f |
diffuse
The diffuse light intensity. |
boolean |
dirty
Set when the light has changed and must be reapplied. |
float |
linearAttenuation
The light's linear attenuation. |
Vector4f |
position
The position or direction of the light. |
float |
quadraticAttenuation
The light's quadratic attenuation. |
Color4f |
specular
The specular light intensity. |
float |
spotCutoff
The light's spot cutoff. |
Vector3f |
spotDirection
The light's spot direction. |
float |
spotExponent
The light's spot exponent. |
| Constructor Summary | |
|---|---|
Light()
|
|
| Method Summary | |
|---|---|
Light.Type |
getType()
Returns the basic type of this light. |
boolean |
isCompatible(Light olight)
Determines whether this light is "compatible" with the specified other. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Color4f ambient
public Color4f diffuse
public Color4f specular
public Vector4f position
public Vector3f spotDirection
public float spotExponent
public float spotCutoff
public float constantAttenuation
public float linearAttenuation
public float quadraticAttenuation
public boolean dirty
public boolean castsShadows
| Constructor Detail |
|---|
public Light()
| Method Detail |
|---|
public boolean isCompatible(Light olight)
public Light.Type getType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||