public final class Fog extends AbstractFog
Constructor and Description |
---|
Fog(int hex)
This default constructor will make simple fog with
near parameter 1.0 and far 1000
|
Fog(int hex,
double near,
double far)
This constructor will make simple fog with defined parameters.
|
Modifier and Type | Method and Description |
---|---|
Fog |
clone() |
double |
getFar()
Get far fog parameter
|
double |
getNear()
Get near fog parameter
|
void |
refreshUniforms(java.util.Map<java.lang.String,Uniform> uniforms)
The method refreshes uniforms for the fog
|
void |
setFar(double far)
Set far fog parameter
|
void |
setNear(double near)
Set near fog parameter
|
public Fog(int hex)
hex
- the color in HEX formatpublic Fog(int hex, double near, double far)
hex
- the color in HEX formatnear
- the near scalar valuefar
- the far scala valuepublic void setNear(double near)
near
- the near scalar valuepublic double getNear()
public void setFar(double far)
far
- the far fog parameterpublic double getFar()
public Fog 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