Class SpotLight


  • public class SpotLight
    extends BaseLight<SpotLight>
    Note that the default shader doesn't support spot lights, you'll have to supply your own shader to use this class.
    • Field Detail

      • position

        public final Vector3 position
      • direction

        public final Vector3 direction
      • intensity

        public float intensity
      • cutoffAngle

        public float cutoffAngle
      • exponent

        public float exponent
    • Constructor Detail

      • SpotLight

        public SpotLight()
    • Method Detail

      • setPosition

        public SpotLight setPosition​(float positionX,
                                     float positionY,
                                     float positionZ)
      • setDirection

        public SpotLight setDirection​(float directionX,
                                      float directionY,
                                      float directionZ)
      • setIntensity

        public SpotLight setIntensity​(float intensity)
      • setCutoffAngle

        public SpotLight setCutoffAngle​(float cutoffAngle)
      • setExponent

        public SpotLight setExponent​(float exponent)
      • set

        public SpotLight set​(float r,
                             float g,
                             float b,
                             Vector3 position,
                             Vector3 direction,
                             float intensity,
                             float cutoffAngle,
                             float exponent)
      • set

        public SpotLight set​(Color color,
                             float posX,
                             float posY,
                             float posZ,
                             float dirX,
                             float dirY,
                             float dirZ,
                             float intensity,
                             float cutoffAngle,
                             float exponent)
      • set

        public SpotLight set​(float r,
                             float g,
                             float b,
                             float posX,
                             float posY,
                             float posZ,
                             float dirX,
                             float dirY,
                             float dirZ,
                             float intensity,
                             float cutoffAngle,
                             float exponent)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • equals

        public boolean equals​(SpotLight other)