Class Light

java.lang.Object
engine.entities.Light

public class Light extends Object
Light class is used by the shaders to illuminate all objects in the world.
  • 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