Package engine.entities
Class Light
java.lang.Object
engine.entities.Light
Light class is used by the shaders to illuminate all objects in the world.
-
Constructor Summary
ConstructorsConstructorDescriptionLight
(org.joml.Vector3f position, org.joml.Vector3f color) Constructor sets the position and color of the Light -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3f
getColor()
org.joml.Vector3f
void
setColor
(org.joml.Vector3f color) void
setPosition
(org.joml.Vector3f position)
-
Constructor Details
-
Light
public Light(org.joml.Vector3f position, org.joml.Vector3f color) Constructor sets the position and color of the Light- Parameters:
position
-color
-
-
-
Method Details
-
getPosition
public org.joml.Vector3f getPosition()- Returns:
- the position in 3D space of the light
-
setPosition
public void setPosition(org.joml.Vector3f position) - Parameters:
position
- - the position to set the light
-
getColor
public org.joml.Vector3f getColor()- Returns:
- the color of the light in RGB format
-
setColor
public void setColor(org.joml.Vector3f color) - Parameters:
color
- set the color of the light in RGB format
-