Package gaiasky.util
Class Settings.SceneSettings.StarSettings
java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.SceneSettings.StarSettings
- Enclosing class:
Settings.SceneSettings
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionfloat
double
When close to the stars, this factor controls the amount of glow.float[]
float
float
boolean
float
int
Texture index to use for regular star rendering.int
Texture index to use for the light glow effect.Fields inherited from class gaiasky.util.SettingsObject
parent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply()
clone()
void
dispose()
static float
Computes the runtime star point size taking into account cubemap renderinggetStarTexture
(int textureIndex) void
Event notification call.protected void
void
setPointSize
(float pointSize) protected void
Methods inherited from class gaiasky.util.SettingsObject
isEnabled, setParent
-
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 glowFactorWhen 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 textureIndexTexture index to use for regular star rendering. -
textureIndexLens
public int textureIndexLensTexture 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
-
getStarTexture
-
getStarLensTexture
-
setPointSize
public void setPointSize(float pointSize) -
notify
Description copied from interface:IObserver
Event notification call. -
clone
- Overrides:
clone
in classSettingsObject
-
setParentRecursive
- Specified by:
setParentRecursive
in classSettingsObject
-
setupListeners
protected void setupListeners()- Specified by:
setupListeners
in classSettingsObject
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
apply
public void apply()
-