5 #ifndef MERCATOR_FILL_DEPTH_SHADER_H 6 #define MERCATOR_FILL_DEPTH_SHADER_H 8 #include <Mercator/Shader.h> 59 #endif // MERCATOR_FILL_DEPTH_SHADER_H static const float default_murkyDepth
Default depth at which the bottom becomes completely obscured.
Definition: DepthShader.h:34
float m_waterLevel
The level of the surface of the water.
Definition: DepthShader.h:22
Shader to give the appearance of deep murky water.
Definition: DepthShader.h:19
virtual bool checkIntersect(const Segment &) const
Check whether this Shader has any effect on the given Segment.
Definition: DepthShader.cpp:52
float m_murkyDepth
The depth at which the bottom becomes completely obscured.
Definition: DepthShader.h:24
const float murkyDepth() const
Accessor for the depth at which the bottom becomes completely obscured.
Definition: DepthShader.h:51
Data store for terrain surface data.
Definition: Surface.h:22
static const std::string key_murkyDepth
Key string used when specifying the murky depth parameter.
Definition: DepthShader.h:29
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.
Definition: Shader.h:63
DepthShader(float waterLevel=default_waterLevel, float murkyDepth=default_murkyDepth)
Constructor.
Definition: DepthShader.cpp:29
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Definition: Segment.h:36
Base class for Shader objects which create surface data for use when rendering terrain.
Definition: Shader.h:29
const float waterLevel() const
Accessor for the level of the surface of the water.
Definition: DepthShader.h:49
virtual void shade(Surface &) const
Populate a Surface with data.
Definition: DepthShader.cpp:61
static const float default_waterLevel
Default level of the surface of the water.
Definition: DepthShader.h:32
static const std::string key_waterLevel
Key string used when specifying the water level parameter.
Definition: DepthShader.h:27