|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.loaders.discreet.LightBlock
public class LightBlock
Representation of a single light and its paramaters needed for rendering.
Lights are described using the 0x4600 series of parameters. Not all of them are mapped here currently. A light is considered to be a directional light at all times, which may be narrowed into a spotlight.
Field Summary | |
---|---|
static int |
AMBIENT_LIGHT
Treat this as an ambient light |
float |
aspectRatio
An aspect ratio setting for the light, allowing for non-circular visuals |
float |
attenuation
The linear attentuation parameter of the light |
float |
bias
The bias of the spotlight ray |
boolean |
castsShadows
Flag indicating that this light will cast shadows |
float[] |
color
The 3-component light colour value |
float[] |
direction
The location or direction of the light, depending on whether it is a spotlight or directional light. |
static int |
DIRECTIONAL_LIGHT
Treat this as a directional light |
boolean |
enabled
Is this light on or off right now. |
float |
falloffAngle
The falloff angle outside the hotspot till it reaches 0 |
float |
hotspotAngle
The angle of effect for the spotlight |
float |
innerRange
An inner range for the directional light |
float |
multiple
A multiplier value for the standard light settings |
float |
outerRange
An outer range for the directional light |
float |
rollAngle
The roll angle of the light. |
boolean |
seeCone
Flag indicating if a cone indicating visiblity should be shown |
int |
shadowMapSize
If shadowed, the size of the map to create in pixels (square) |
float[] |
shadowParams
If shadows are being case, the parameters. |
static int |
SPOT_LIGHT
Treat this as a spot light light |
float[] |
target
If non-null, treat as a spotlight and this is the target location |
int |
type
The light type to treat this as. |
Constructor Summary | |
---|---|
LightBlock()
Create a new light block and set it up for a basic directional light. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DIRECTIONAL_LIGHT
public static final int SPOT_LIGHT
public static final int AMBIENT_LIGHT
public int type
public boolean enabled
public float[] color
public float[] direction
public float[] target
public float hotspotAngle
public float falloffAngle
public float rollAngle
public float aspectRatio
public float bias
public float innerRange
public float outerRange
public float multiple
public float attenuation
public boolean seeCone
public boolean castsShadows
public float[] shadowParams
public int shadowMapSize
Constructor Detail |
---|
public LightBlock()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |