Class Moon

  • Direct Known Subclasses:
    Sun

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

      • Moon

        public Moon()
        Creating new white moon and setting its attenuation to infinity
    • Method Detail

      • getSize

        public final float getSize()
        Returns:
        Size of the moon
      • setSize

        public final void setSize​(float size)
        Parameters:
        size - New sizeof the moon
      • getTexture

        public final String getTexture()
        Returns:
        TextureData of the moon
      • setTexture

        public final void setTexture​(String texture)
        Parameters:
        texture - New texture of the moon
      • addLights

        public final void addLights()
        Adding lights of the moon to the masterrenderer
      • getColor

        public final Color getColor()
        Returns:
        Color of the moon
      • getPosition

        public final javax.vecmath.Vector3f getPosition()
        Returns:
        Worldposition of the moon
      • setIntensity

        public final void setIntensity​(float intensity)
        Setting light intensity
        Parameters:
        intensity - New intensity of the light