Class Sun


  • public class Sun
    extends Moon
    Class that reprsents a sun for post processing and lighting calculation
    Author:
    Darius Dinger
    • Constructor Detail

      • Sun

        public Sun()
        Creating new white sun and setting its attenuation to infinity
    • Method Detail

      • isLensFlareEnabled

        public final boolean isLensFlareEnabled()
        Returns:
        Is lens flare currently enabled for the sun
      • setLensFlareEnabled

        public final void setLensFlareEnabled​(boolean lensFlareEnabled)
        Parameters:
        lensFlareEnabled - Enable/disable lens flare