public static class LightFilter.Light extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
(package private) float |
azimuth |
(package private) float |
centreX |
(package private) float |
centreY |
(package private) int |
color |
(package private) float |
coneAngle |
(package private) float |
cosConeAngle |
(package private) Vector3f |
direction |
(package private) float |
distance |
(package private) float |
elevation |
(package private) float |
focus |
(package private) float |
intensity |
(package private) Vector3f |
position |
(package private) Color4f |
realColor |
(package private) int |
type |
Constructor and Description |
---|
Light() |
Light(float azimuth,
float elevation,
float intensity) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
float |
getAzimuth() |
float |
getCentreX()
Get the centre of the light in the X direction as a proportion of the image size.
|
float |
getCentreY()
Get the centre of the light in the Y direction as a proportion of the image size.
|
int |
getColor() |
float |
getConeAngle() |
float |
getDistance() |
float |
getElevation() |
float |
getFocus() |
float |
getIntensity() |
void |
prepare(int width,
int height)
Prepare the light for rendering.
|
void |
setAzimuth(float azimuth) |
void |
setCentreX(float x)
Set the centre of the light in the X direction as a proportion of the image size.
|
void |
setCentreY(float y)
Set the centre of the light in the Y direction as a proportion of the image size.
|
void |
setColor(int color) |
void |
setConeAngle(float coneAngle) |
void |
setDistance(float distance) |
void |
setElevation(float elevation) |
void |
setFocus(float focus) |
void |
setIntensity(float intensity) |
String |
toString() |
int type
int color
float intensity
float azimuth
float elevation
float focus
float centreX
float centreY
float coneAngle
float cosConeAngle
float distance
public Light()
public Light(float azimuth, float elevation, float intensity)
public void setAzimuth(float azimuth)
public float getAzimuth()
public void setElevation(float elevation)
public float getElevation()
public void setDistance(float distance)
public float getDistance()
public void setIntensity(float intensity)
public float getIntensity()
public void setConeAngle(float coneAngle)
public float getConeAngle()
public void setFocus(float focus)
public float getFocus()
public void setColor(int color)
public int getColor()
public void setCentreX(float x)
centreX
- the centergetCentreX()
public float getCentreX()
setCentreX(float)
public void setCentreY(float y)
centreY
- the centergetCentreY()
public float getCentreY()
setCentreY(float)
public void prepare(int width, int height)
width
- the output image widthheight
- the output image heightWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses