mercator
0.4.0
A terrain generation library for the Worldforge system.
|
5 #ifndef MERCATOR_FILL_DEPTH_SHADER_H
6 #define MERCATOR_FILL_DEPTH_SHADER_H
59 #endif // MERCATOR_FILL_DEPTH_SHADER_H
static const std::string key_murkyDepth
Key string used when specifying the murky depth parameter.
static const float default_waterLevel
Default level of the surface of the water.
Shader to give the appearance of deep murky water.
Class storing heightfield and other data for a single fixed size square area of terrain defined by fo...
Data store for terrain surface data.
bool checkIntersect(const Segment &) const override
Check whether this Shader has any effect on the given Segment.
void shade(Surface &) const override
Populate a Surface with data.
float waterLevel() const
Accessor for the level of the surface of the water.
static const std::string key_waterLevel
Key string used when specifying the water level parameter.
Base class for Shader objects which create surface data for use when rendering terrain.
DepthShader(float waterLevel=default_waterLevel, float murkyDepth=default_murkyDepth)
Constructor.
float murkyDepth() const
Accessor for the depth at which the bottom becomes completely obscured.
static const float default_murkyDepth
Default depth at which the bottom becomes completely obscured.
std::map< std::string, float > Parameters
STL map of parameter values for a shader constructor.