public final class FogExp2 extends AbstractFog
Constructor and Description |
---|
FogExp2(int hex)
This default constructor will make fog with
density parameter 0.00025.
|
FogExp2(int hex,
double density)
This constructor will make fog with defined density.
|
Modifier and Type | Method and Description |
---|---|
FogExp2 |
clone() |
double |
getDensity()
Get density parameter
|
void |
refreshUniforms(java.util.Map<java.lang.String,Uniform> uniforms)
The method refreshes uniforms for the fog
|
void |
setDensity(double density)
Set density parameter
|
public FogExp2(int hex)
hex
- the color in HEX formatpublic FogExp2(int hex, double density)
hex
- the color in HEX formatdensity
- the density value in range <0.0, 1.0>public void setDensity(double density)
density
- the density value in range <0.0, 1.0>public double getDensity()
public FogExp2 clone()
clone
in class AbstractFog
public void refreshUniforms(java.util.Map<java.lang.String,Uniform> uniforms)
AbstractFog
refreshUniforms
in class AbstractFog
uniforms
- the map of uniforms