HeightColorMap
Internal mod name: PQSMod_HeightColorMap
The HeightColorMap PQSMod is a mod that colors the terrain based on altitude using user-defined landclasses. A LandClass in this context is a color and an altitude range within which this color should be applied.
Subnodes
LandClasses { }(defined below)
Example
cfg
PQS
{
Mods
{
HeightColorMap
{
enabled = true
order = 24
blend = 0.1
LandClasses
{
LandClass
{
name = _Ocean
color = 0.1,0.2,0.8,1
altitudeStart = 0.0
altitudeEnd = 0.125
lerpToNext = true
}
LandClass
{
name = _Plains
color = 0.7,0.6,0.1,1
altitudeStart = 0.125
altitudeEnd = 0.375
lerpToNext = true
}
LandClass
{
name = _MountainSide
color = 0.6,0.9,0.05,1
altitudeStart = 0.375
altitudeEnd = 0.75
lerpToNext = true
}
LandClass
{
name = _RoundingTheSummit
color = 0.7,0.85,0.2,1
altitudeStart = 0.75
altitudeEnd = 0.9
lerpToNext = true
}
LandClass
{
name = _IceCap
color = 0.9,0.9,0.9,1
altitudeStart = 0.9
altitudeEnd = 1.0
lerpToNext = false
}
}
}
}
}| Property | Format | Description |
|---|---|---|
| blend | Decimal | This parameter controls the total blending of the output. In other words, if blend = 0.7 then the result of the PQSMod is, at most, 70% of the mod's output and 30% of the original vertex color. |
LandClasses
The LandClasses { } node wraps several LandClass { } subnodes that describe an individual region's color as defined by altitudes.
| Property | Format | Description |
|---|---|---|
| name | Text | The name of the LandClass. |
| color | Color | The color to be applied to the terrain that falls within this LandClass. |
| altitudeStart | Decimal | The starting altitude of the LandClass. NOTE: Altitude is measured in fractions of valid PQS height: altitude = (vertexHeight - vertexMinHeightOfPQS) / vertexHeightDeltaOfPQS. |
| altitudeEnd | Decimal | The ending altitude of the LandClass. Follows same measurement unit as altitudeStart. |
| lerpToNext | Boolean | Whether to blend into the next LandClass. Highly recommended to set to true on all but the last LandClass. |