Surface shader that defines the surface below a given level.
More...
#include <ThresholdShader.h>
|
static const std::string | key_threshold |
| Key string used when specifying the threshold parameter.
|
|
static const float | default_threshold = -1.f |
| Default level below which the shader renders.
|
|
|
typedef std::map< std::string, float > | Parameters |
| STL map of parameter values for a shader constructor.
|
|
| Shader (bool color=false, bool alpha=true) |
| Protected constructor for classes which inherit from this one. More...
|
|
Surface shader that defines the surface below a given level.
Constructor.
- Parameters
-
threshold | level below which the shader renders. |
Mercator::LowShader::LowShader |
( |
const Parameters & |
params | ) |
|
|
explicit |
Constructor.
- Parameters
-
params | a map of parameters for the shader. |
bool Mercator::LowShader::checkIntersect |
( |
const Segment & |
| ) |
const |
|
overridevirtual |
Check whether this Shader has any effect on the given Segment.
- Returns
- true if the given Segment height range is within the range that this Shader uses. e.g. A high altitude snow shader will have no effect on low level terrain.
Implements Mercator::Shader.
The documentation for this class was generated from the following files: