Class AtmosphereComponent
- java.lang.Object
-
- gaia.cu9.ari.gaiaorbit.scenegraph.component.AtmosphereComponent
-
public class AtmosphereComponent extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description boolean
correctGround
com.badlogic.gdx.math.Vector3
fogColor
float
fogDensity
com.badlogic.gdx.math.Matrix4
localTransform
float
m_fAtmosphereHeight
float
m_fInnerRadius
float
m_fOuterRadius
float
m_Km
float
m_Kr
ModelComponent
mc
java.util.Map<java.lang.String,java.lang.Object>
params
float
planetSize
int
quality
float
size
double[]
wavelengths
-
Constructor Summary
Constructors Constructor Description AtmosphereComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doneLoading(com.badlogic.gdx.graphics.g3d.Material planetMat, float planetSize)
void
removeAtmosphericScattering(com.badlogic.gdx.graphics.g3d.Material mat)
void
setCorrectground(java.lang.Boolean correctGround)
void
setFogcolor(double[] fogColor)
void
setFogdensity(java.lang.Double fogDensity)
void
setLocalTransform(com.badlogic.gdx.math.Matrix4 localTransform)
void
setM_Km(java.lang.Double m_Km)
void
setM_Kr(java.lang.Double m_Kr)
void
setMc(ModelComponent mc)
void
setParams(java.util.Map<java.lang.String,java.lang.Object> params)
void
setQuality(java.lang.Long quality)
void
setSize(java.lang.Double size)
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
update(Vector3d transform)
void
updateAtmosphericScatteringParams(com.badlogic.gdx.graphics.g3d.Material mat, float alpha, boolean ground, Planet planet, Vector3d vroffset)
Updates the atmospheric scattering shader parameters
-
-
-
Field Detail
-
quality
public int quality
-
size
public float size
-
planetSize
public float planetSize
-
mc
public ModelComponent 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
public java.util.Map<java.lang.String,java.lang.Object> params
-
-
Method Detail
-
doneLoading
public void doneLoading(com.badlogic.gdx.graphics.g3d.Material planetMat, float planetSize)
-
update
public void update(Vector3d transform)
-
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
public void setQuality(java.lang.Long quality)
-
setSize
public void setSize(java.lang.Double size)
-
setMc
public void setMc(ModelComponent mc)
-
setLocalTransform
public void setLocalTransform(com.badlogic.gdx.math.Matrix4 localTransform)
-
setWavelengths
public void setWavelengths(double[] wavelengths)
-
setFogcolor
public void setFogcolor(double[] fogColor)
-
setFogdensity
public void setFogdensity(java.lang.Double fogDensity)
-
setM_Kr
public void setM_Kr(java.lang.Double m_Kr)
-
setM_Km
public void setM_Km(java.lang.Double m_Km)
-
setParams
public void setParams(java.util.Map<java.lang.String,java.lang.Object> params)
-
setCorrectground
public void setCorrectground(java.lang.Boolean correctGround)
-
-