17 #ifndef TERRAINMATERIALDEF_H
18 #define TERRAINMATERIALDEF_H
249 float mEdgeWidth = 0.0f;
250 float mEdgeOffset = 0.0f;
251 float mEdgeScale = 1.0f;
252 float mBevelScale = 1.0f;
257 #endif // TERRAINMATERIALDEF_H
void mergeFromJson(const QVariantMap &jsonValue)
Initializes the terrain material properties from a JSON-based property map.
void setOpaque(bool value)
Returns whether or not the alpha channel on the base texture should be used for alpha blending...
void setEdgeTexture(const QString &value)
Sets the graphics root relative path to the edge texture.
bool isTiled() const
Whether or not the base texture should be tiled past the first instance.
Definition: TerrainMaterialDef.h:128
void setEdgeScale(float value)
Sets the scaling factor on edge texture coordinates, controlling the tightness of tiling...
Total number of blending modes.
const QString & getEdgeTexture() const
Returns the graphics root relative path to the edge texture.
Definition: TerrainMaterialDef.h:119
const QString & getName() const
Returns the name of this material.
Definition: TerrainMaterialDef.h:92
const QString & getBaseTexture() const
Returns the graphics root relative path to the base texture.
Definition: TerrainMaterialDef.h:101
BlendMode getBlendMode() const
Returns the blend mode used to composite the bevel texture over the base texture. ...
Definition: TerrainMaterialDef.h:215
void reset()
Sets all properties in this TerrainMaterialDef to their default.
float getEdgeScale() const
Returns the scaling factor on edge texture coordinates.
Definition: TerrainMaterialDef.h:185
bool isOpaque() const
Whether or not the alpha channel on the base texture should be used for alpha blending.
Definition: TerrainMaterialDef.h:139
static BlendMode parseBlendMode(const QString &str, BlendMode defaultValue)
Returns a string converted into the corresponding BlendMode.
void setTiled(bool value)
Sets whether or not the base texture should be tiled past the first instance.
void setName(const QString &value)
Sets the name of this material, used to identify it and look it up.
float getBevelScale() const
Returns the horizontal scaling factor on bevel texture coordinates.
Definition: TerrainMaterialDef.h:200
const QString & getBevelTexture() const
Returns the graphics root relative path to the bevel texture.
Definition: TerrainMaterialDef.h:110
BlendMode
Blend modes used to mix the bevel texture with the base texture.
Definition: TerrainMaterialDef.h:47
void setBaseTexture(const QString &value)
Sets the graphics root relative path to the base texture.
float getEdgeWidth() const
Returns the width of the edge, in world coordinates.
Definition: TerrainMaterialDef.h:156
void setEdgeOffset(float value)
Sets the offset to apply to the start of the edge polygon's texture coordinates, to shift the start o...
void setBevelTexture(const QString &value)
Sets the graphics root relative path to the bevel texture.
TerrainMaterialDef()
Construct a default TerrainMaterialDef.
Definition of a terrain material.
Definition: TerrainMaterialDef.h:42
void setBlendMode(BlendMode value)
Returns the blend mode used to composite the bevel texture over the base texture. ...
void setEdgeWidth(float value)
Sets the width of the edge, in world coordinates.
float getEdgeOffset() const
Returns the offset to apply to the start of the edge polygon's texture coordinates.
Definition: TerrainMaterialDef.h:173
void setBevelScale(float value)
Sets the horizontal scaling factor on bevel texture coordinates, controlling the tightness of tiling...