Class AtmosphereProgram
- java.lang.Object
-
- gov.nasa.worldwind.render.ShaderProgram
-
- gov.nasa.worldwind.layer.atmosphere.AtmosphereProgram
-
- All Implemented Interfaces:
RenderResource
- Direct Known Subclasses:
GroundProgram
,SkyProgram
public class AtmosphereProgram extends ShaderProgram
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AtmosphereProgram.FragMode
Frag color indicates the atmospheric scattering color components written to the fragment color.
-
Field Summary
Fields Modifier and Type Field Description static int
FRAGMODE_PRIMARY
static int
FRAGMODE_PRIMARY_TEX_BLEND
static int
FRAGMODE_SECONDARY
-
Constructor Summary
Constructors Constructor Description AtmosphereProgram()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAltitude()
void
loadEyePoint(Vec3 eyePoint)
void
loadFragMode(int fragMode)
void
loadGlobeRadius(double equatorialRadius)
void
loadLightDirection(Vec3 direction)
void
loadModelviewProjection(Matrix4 matrix)
void
loadTexCoordMatrix(Matrix3 matrix)
void
loadVertexOrigin(double x, double y, double z)
void
loadVertexOrigin(Vec3 origin)
-
Methods inherited from class gov.nasa.worldwind.render.ShaderProgram
getAttribBindings, getProgramLength, getProgramSources, release, setAttribBindings, setProgramSources, useProgram
-
-
-
-
Field Detail
-
FRAGMODE_PRIMARY
public static final int FRAGMODE_PRIMARY
- See Also:
- Constant Field Values
-
FRAGMODE_SECONDARY
public static final int FRAGMODE_SECONDARY
- See Also:
- Constant Field Values
-
FRAGMODE_PRIMARY_TEX_BLEND
public static final int FRAGMODE_PRIMARY_TEX_BLEND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAltitude
public double getAltitude()
-
loadFragMode
public void loadFragMode(int fragMode)
-
loadModelviewProjection
public void loadModelviewProjection(Matrix4 matrix)
-
loadTexCoordMatrix
public void loadTexCoordMatrix(Matrix3 matrix)
-
loadVertexOrigin
public void loadVertexOrigin(Vec3 origin)
-
loadVertexOrigin
public void loadVertexOrigin(double x, double y, double z)
-
loadLightDirection
public void loadLightDirection(Vec3 direction)
-
loadEyePoint
public void loadEyePoint(Vec3 eyePoint)
-
loadGlobeRadius
public void loadGlobeRadius(double equatorialRadius)
-
-