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[]floatfloatbooleanRender stars as textured sphere models.floatintTexture index to use for regular star rendering.intTexture index to use for the light glow effect.Fields inherited from class 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) com.badlogic.gdx.utils.IntArrayGets the available star texture indices by looking at the available files in the file system.voidEvent notification call.protected voidvoidsetPointSize(float pointSize) protected voidMethods inherited from class SettingsObject
isEnabled, setParent
-
Field Details
-
renderStarSpheres
public boolean renderStarSpheresRender stars as textured sphere models. -
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
-
getStarTextureIndices
public com.badlogic.gdx.utils.IntArray getStarTextureIndices()Gets the available star texture indices by looking at the available files in the file system.- Returns:
- An
IntArraywith the available indices.
-
getStarTexture
-
getStarLensTexture
-
setPointSize
public void setPointSize(float pointSize) -
notify
-
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()
-