Class PointLight
Inheritance
java.lang.Object
PointLight
Syntax
public class PointLight extends Light
Constructors
PointLight(Vector3f color, float intensity, Attenuation attenuation)
Declaration
public PointLight(Vector3f color, float intensity, Attenuation attenuation)
Parameters
Type |
Name |
Description |
Vector3f |
color |
|
float |
intensity |
|
Attenuation |
attenuation |
x is constant, y is linear, z is exponent in a Vector3f
|
PointLight(Vector3f color, float intensity, float constant, float linear, float exponent)
Declaration
public PointLight(Vector3f color, float intensity, float constant, float linear, float exponent)
Parameters
Type |
Name |
Description |
Vector3f |
color |
|
float |
intensity |
|
float |
constant |
|
float |
linear |
|
float |
exponent |
|
Methods
getAttenuation()
Declaration
public Attenuation getAttenuation()
Returns
getRange()
Declaration
Returns
setAttenuation(Attenuation attenuation)
Declaration
public void setAttenuation(Attenuation attenuation)
Parameters
setRange(float range)
Declaration
public void setRange(float range)
Parameters
Type |
Name |
Description |
float |
range |
|