public class SpotLight extends PointLight
The cone angle is specified in radians. The distribution is an exponent specifying the distribution of the light directions around the axis. A value of 0 implies the light is evenly distributed around the axis.
| Modifier and Type | Method and Description |
|---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor.
|
double |
getConeAngle() |
double |
getConeDeltaAngle() |
double |
getDistribution() |
void |
setConeAngle(double coneAngle)
Sets the coneAngle.
|
void |
setConeDeltaAngle(double coneDeltaAngle)
Sets the coneDeltaAngle.
|
void |
setDistribution(double distribution)
Sets the distribution.
|
getFalloffA0, getFalloffA1, getFalloffA2, getShadowMap, getShadowMapX, getShadowMapY, isUseShadowMap, setFalloff, setFalloff, setFalloffA0, setFalloffA1, setFalloffA2, setShadowMap, setShadowMapX, setShadowMapY, setUseShadowMapaddLightListener, getColor, getIntensity, getScaledColorAsFloat, isAmbientFake, isGlobal, removeLightListener, setAmbientFake, setColor, setGlobal, setIntensitygetName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toStringpublic SpotLight()
public SpotLight(String name)
public double getConeAngle()
public void setConeAngle(double coneAngle)
coneAngle - The coneAngle to setpublic double getConeDeltaAngle()
public double getDistribution()
public void setConeDeltaAngle(double coneDeltaAngle)
coneDeltaAngle - The coneDeltaAngle to setpublic void setDistribution(double distribution)
distribution - The distribution to setpublic void accept(SceneGraphVisitor v)
SceneGraphNodeaccept in class PointLight