Package gaiasky.scenegraph.component
Class AtmosphereComponent
java.lang.Object
gaiasky.scenegraph.component.AtmosphereComponent
-
Field Summary
Modifier and TypeFieldDescriptionboolean
com.badlogic.gdx.math.Vector3
float
com.badlogic.gdx.math.Matrix4
float
float
float
float
float
float
int
float
double[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doneLoading(com.badlogic.gdx.graphics.g3d.Material planetMat, float planetSize)
void
removeAtmosphericScattering(com.badlogic.gdx.graphics.g3d.Material mat)
void
setCorrectground(Boolean correctGround)
void
setFogcolor(double[] fogColor)
void
setFogdensity(Double fogDensity)
void
setLocalTransform(com.badlogic.gdx.math.Matrix4 localTransform)
void
void
void
setMc(ModelComponent mc)
void
void
setQuality(Long quality)
void
void
setUpAtmosphericScatteringMaterial(com.badlogic.gdx.graphics.g3d.Material mat, boolean ground)
Sets up the atmospheric scattering parameters to the given materialvoid
setWavelengths(double[] wavelengths)
void
void
updateAtmosphericScatteringParams(com.badlogic.gdx.graphics.g3d.Material mat, float alpha, boolean ground, Planet planet, Vector3d vroffset)
Updates the atmospheric scattering shader parameters
-
Field Details
-
quality
public int quality -
size
public float size -
planetSize
public float planetSize -
mc
-
localTransform
public com.badlogic.gdx.math.Matrix4 localTransform -
wavelengths
public double[] wavelengths -
m_fInnerRadius
public float m_fInnerRadius -
m_fOuterRadius
public float m_fOuterRadius -
m_fAtmosphereHeight
public float m_fAtmosphereHeight -
m_Kr
public float m_Kr -
m_Km
public float m_Km -
fogDensity
public float fogDensity -
fogColor
public com.badlogic.gdx.math.Vector3 fogColor -
correctGround
public boolean correctGround -
params
-
-
Constructor Details
-
AtmosphereComponent
public AtmosphereComponent()
-
-
Method Details
-
doneLoading
public void doneLoading(com.badlogic.gdx.graphics.g3d.Material planetMat, float planetSize) -
update
-
setUpAtmosphericScatteringMaterial
public void setUpAtmosphericScatteringMaterial(com.badlogic.gdx.graphics.g3d.Material mat, boolean ground)Sets up the atmospheric scattering parameters to the given material- Parameters:
mat
- The material to set up.
-
removeAtmosphericScattering
public void removeAtmosphericScattering(com.badlogic.gdx.graphics.g3d.Material mat) -
updateAtmosphericScatteringParams
public void updateAtmosphericScatteringParams(com.badlogic.gdx.graphics.g3d.Material mat, float alpha, boolean ground, Planet planet, Vector3d vroffset)Updates the atmospheric scattering shader parameters- Parameters:
mat
- The material to update.alpha
- The opacity value.ground
- Whether it is the ground shader or the atmosphere.planet
- The planet itself, holder of this atmosphere
-
setQuality
-
setSize
-
setMc
-
setLocalTransform
public void setLocalTransform(com.badlogic.gdx.math.Matrix4 localTransform) -
setWavelengths
public void setWavelengths(double[] wavelengths) -
setFogcolor
public void setFogcolor(double[] fogColor) -
setFogdensity
-
setM_Kr
-
setM_Km
-
setParams
-
setCorrectground
-