Package gaiasky.util
Class Settings.SceneSettings.StarSettings
java.lang.Object
gaiasky.util.SettingsObject
gaiasky.util.Settings.SceneSettings.StarSettings
- Enclosing class:
Settings.SceneSettings
Star settings define visual and behavioral characteristics of stars.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSettings that apply to star and particle groups.static classThreshold angles used in rendering. -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatdoubleWhen close to the stars, this factor controls the amount of glow.float[]floatfloatbooleanfloatintTexture index to use for regular star rendering.intTexture index to use for the light glow effect.Fields inherited from class gaiasky.util.SettingsObject
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()clone()voiddispose()static floatComputes the runtime star point size taking into account cubemap renderinggetStarTexture(int textureIndex) voidEvent notification call.protected voidvoidsetPointSize(float pointSize) protected voidMethods 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:IObserverEvent notification call. -
clone
- Overrides:
clonein classSettingsObject
-
setParentRecursive
- Specified by:
setParentRecursivein classSettingsObject
-
setupListeners
protected void setupListeners()- Specified by:
setupListenersin classSettingsObject
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
apply
public void apply()
-