Package gaiasky.util

Class Settings.SceneSettings.StarSettings

java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.SceneSettings.StarSettings
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IObserver, Cloneable
Enclosing class:
Settings.SceneSettings

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

    • renderStarSpheres

      public boolean renderStarSpheres
    • brightness

      public float brightness
    • power

      public float power
    • pointSize

      public float pointSize
    • saturate

      public float saturate
    • 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.
    • clone

      Overrides:
      clone in class SettingsObject
    • setParentRecursive

      protected void setParentRecursive(SettingsObject s)
      Specified by:
      setParentRecursive in class SettingsObject
    • setupListeners

      protected void setupListeners()
      Specified by:
      setupListeners in class SettingsObject
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
    • apply

      public void apply()