Package gaiasky.util

Class Settings.SceneSettings.StarSettings

java.lang.Object
gaiasky.util.Settings.SceneSettings.StarSettings
All Implemented Interfaces:
IObserver
Enclosing class:
Settings.SceneSettings

public static class Settings.SceneSettings.StarSettings extends Object implements IObserver
  • Field Details

    • renderStarSpheres

      public boolean renderStarSpheres
    • brightness

      public float brightness
    • power

      public float power
    • pointSize

      public float pointSize
    • glowFactor

      public double glowFactor
      When close to the stars, this factor controls the amount of glow. It should be set rather low, i.e., in [0.01,0.2].
    • opacity

      public float[] opacity
    • textureIndex

      public int textureIndex
      Texture index to use for regular star rendering.
    • textureIndexLens

      public int textureIndexLens
      Texture index to use for the light glow effect. Usually includes a lens artifact.
    • group

    • threshold

  • Constructor Details

    • StarSettings

      public StarSettings()
  • Method Details

    • getStarPointSize

      public static float getStarPointSize()
      Computes the runtime star point size taking into account cubemap rendering
      Returns:
      The point size in pixels
    • getStarTexture

      public String getStarTexture(int textureIndex)
    • getStarTexture

      public String getStarTexture()
    • getStarLensTexture

      public String getStarLensTexture()
    • setPointSize

      public void setPointSize(float pointSize)
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.