Class dnx.ice.SpotLight
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.ice.SpotLight
java.lang.Object
|
+----dnx.ice.Light
|
+----dnx.ice.PointLight
|
+----dnx.ice.SpotLight
- public class SpotLight
- extends PointLight
Spotlight -- has properties of point and directional light sources.
-
SpotLight()
- Create a spotlight.
-
SpotLight(float, float, float)
- Create a spotlight which point in the direction from the origin to the
point (x, y, z).
-
getDirection(Vector3)
-
-
setBeam(float, float)
- Set the cutoff angle and the dropoff rate.
-
setDirection(float, float, float)
- Set the spotlight's direction.
-
setDirection(Vector3)
-
SpotLight
public SpotLight()
- Create a spotlight. The new light is positioned at the origin and
points in the positive Z direction. The cutoff angle is 30 degrees and
the dropoff rate is 1.0.
SpotLight
public SpotLight(float x,
float y,
float z)
- Create a spotlight which point in the direction from the origin to the
point (x, y, z). The new spotlight otherwise has the same properties
as one created with the SpotLight() contstructor.
setDirection
public void setDirection(float x,
float y,
float z)
- Set the spotlight's direction.
setDirection
public void setDirection(Vector3 direction)
getDirection
public void getDirection(Vector3 v)
setBeam
public void setBeam(float cutoffAngle,
float beamWidth)
- Set the cutoff angle and the dropoff rate. The cutoff angle defines
the cone which the spotlight illuminates. The intensity of the beam
is constant inside the cone of angle beamWidth; it drops of linearly
to zero at the cutoff angle. Angles are clamped to lie within
[ 0, PI/2 ]
All Packages Class Hierarchy This Package Previous Next Index