Class Attenuation


  • public class Attenuation
    extends Object
    A simple setting class to define the attenuation of a light w.r.t. to the distance of the vertex to the light source, as defined in the Light javadoc.
    Author:
    Martin Pernollet
    • Field Detail

      • constant

        protected float constant
      • linear

        protected float linear
      • quadratic

        protected float quadratic
    • Constructor Detail

      • Attenuation

        public Attenuation()
      • Attenuation

        public Attenuation​(float constant,
                           float linear,
                           float quadratic)
    • Method Detail

      • getLinear

        public float getLinear()
      • setLinear

        public void setLinear​(float linear)
      • getConstant

        public float getConstant()
      • setConstant

        public void setConstant​(float constant)
      • getQuadratic

        public float getQuadratic()
      • setQuadratic

        public void setQuadratic​(float quadratic)