VoltAir
|
Selector key which picks the specific terrain shader variant to use. More...
Public Member Functions | |
bool | operator< (const TerrainShaderKey &other) const |
Less than operator for use with QMap. More... | |
TerrainShaderKey () | |
Construct an empty TerrainShaderKey with default values. More... | |
TerrainShaderKey (bool hasEdge, bool hasBevel, TerrainMaterialDef::BlendMode blendMode) | |
Construct a TerrainShaderKey. More... | |
Public Attributes | |
bool | hasEdge = false |
Whether or not this shader renders edges. More... | |
bool | hasBevel = false |
Whether or not this shader renders a bevel section. More... | |
TerrainMaterialDef::BlendMode | blendMode = TerrainMaterialDef::BlendMode::Add |
How the blend texture should be composited on to the base texture. More... | |
Selector key which picks the specific terrain shader variant to use.
TerrainShaderKey::TerrainShaderKey | ( | ) |
Construct an empty TerrainShaderKey with default values.
TerrainShaderKey::TerrainShaderKey | ( | bool | hasEdge, |
bool | hasBevel, | ||
TerrainMaterialDef::BlendMode | blendMode | ||
) |
Construct a TerrainShaderKey.
bool TerrainShaderKey::operator< | ( | const TerrainShaderKey & | other | ) | const |
Less than operator for use with QMap.
other | TerrainShaderKey to compare |
true
if this
is logically less than other
TerrainMaterialDef::BlendMode TerrainShaderKey::blendMode = TerrainMaterialDef::BlendMode::Add |
How the blend texture should be composited on to the base texture.
false
. bool TerrainShaderKey::hasBevel = false |
Whether or not this shader renders a bevel section.
TerrainShaders with bevel sections take a blend texture, and additional texture coordinates for that texture.
bool TerrainShaderKey::hasEdge = false |
Whether or not this shader renders edges.
TerrainShaders with edges take a mask texture, and additional texture coordinates for that texture.