Package ecs
Class PointLight
java.lang.Object
ecs.Component
ecs.PointLight
- All Implemented Interfaces:
Comparable<Component>
A Point Light Component is essentially a location in the world that emits light in
all directions. One can also specify both it's color and it's intensity.
- Author:
- VoxelRifts
-
Nested Class Summary
Nested classes/interfaces inherited from class ecs.Component
Component.ComponentOrder
-
Field Summary
Modifier and TypeFieldDescriptionorg.joml.Vector3f
Colour of the lightfloat
Intensity of the light It controls how far the light's attenuation will reachFields inherited from class ecs.Component
gameObject
-
Constructor Summary
ConstructorDescriptionPointLight
(float intensity) Constructor which sets color of the light by default to white.PointLight
(Color color, float intensity) -
Method Summary
-
Field Details
-
color
public org.joml.Vector3f colorColour of the light -
intensity
public float intensityIntensity of the light It controls how far the light's attenuation will reach
-
-
Constructor Details
-
PointLight
public PointLight(float intensity) Constructor which sets color of the light by default to white.- Parameters:
intensity
- float: Intensity of the light
-
PointLight
- Parameters:
color
- Vector3f: Color of the lightintensity
- float: Intensity of the light
-
-
Method Details