Class Light
Inheritance
java.lang.Object
Light
Syntax
public class Light extends SceneComponent
Constructors
Light(Vector3f color, float intensity)
Declaration
public Light(Vector3f color, float intensity)
Parameters
Type |
Name |
Description |
Vector3f |
color |
|
float |
intensity |
|
Methods
addToScene()
Declaration
getColor()
Declaration
public Vector3f getColor()
Returns
getIntensity()
Declaration
public float getIntensity()
Returns
getShader()
Declaration
public Shader getShader()
Returns
setColor(Vector3f color)
Declaration
public void setColor(Vector3f color)
Parameters
setIntensity(float intensity)
Declaration
public void setIntensity(float intensity)
Parameters
Type |
Name |
Description |
float |
intensity |
|
setShader(Shader shader)
Declaration
public void setShader(Shader shader)
Parameters
Type |
Name |
Description |
Shader |
shader |
|