Class dnx.ice.PointLight
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.ice.PointLight
java.lang.Object
|
+----dnx.ice.Light
|
+----dnx.ice.PointLight
- public class PointLight
- extends Light
Localized light source.
-
PointLight()
- Create a point light source at the origin with default
colors and no distance attenuation.
-
PointLight(float, float, float)
- Create a point light source at point (x, y, z) with
default colors and no distance attenuation.
-
getIlluminationRadius()
-
-
getPosition(Point3)
- Get the position of the light source.
-
setAttenuation(float, float, float)
- Set how the light diminishes with distance from the source.
-
setIlluminationRadius(float)
- Set the maximum distance from this light source at which objects
may still be illuminated by it.
-
setPosition(float, float, float)
- Set the position of the light source.
-
setPosition(Point3)
- Set the position of the light source.
PointLight
public PointLight()
- Create a point light source at the origin with default
colors and no distance attenuation.
PointLight
public PointLight(float x,
float y,
float z)
- Create a point light source at point (x, y, z) with
default colors and no distance attenuation.
setPosition
public synchronized void setPosition(float x,
float y,
float z)
- Set the position of the light source.
setPosition
public void setPosition(Point3 position)
- Set the position of the light source.
getPosition
public void getPosition(Point3 position)
- Get the position of the light source.
setIlluminationRadius
public void setIlluminationRadius(float radius)
- Set the maximum distance from this light source at which objects
may still be illuminated by it.
getIlluminationRadius
public float getIlluminationRadius()
setAttenuation
public void setAttenuation(float quadratic,
float linear,
float constant)
- Set how the light diminishes with distance from the source. At
distance d from the light source, the light is diminished by a
factor of:
1 / (quadratic * d ^ 2 + linear * d + constant)
All Packages Class Hierarchy This Package Previous Next Index