Skip to content

HeightColorMap2

Internal mod name: PQSMod_HeightColorMap2

The HeightColorMap2 PQSMod is a mod that colors the terrain based on altitude using user-defined landclasses and has slightly more configuration options than HeightColorMap. The behavior is mostly identical, the difference lies in the two extra parameters: minHeight and maxHeight. Regular HeightColorMap normalizes the altitude using an inference of maximum terrain altitude. This PQSMod, by contrast, lets you specify the altitude range.

Subnodes

  • LandClasses { } (defined below)

Example

cfg
PQS
{
    Mods
    {
        HeightColorMap2
        {
            enabled = true
            order = 24
            
            blend = 0.1
            minHeight = -1000
            maxHeight = 50000
            
            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
                }
            }
        }
    }
}
PropertyFormatDescription
blendDecimalThis 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.
minHeightDecimalThe minimum height, or 0.0 altitude, of a LandClass.
maxHeightDecimalThe maxmium height, or 1.0 altitude, of a LandClass.

LandClasses

The LandClasses { } wraps several LandClass { } nodes that describe an individual region's color as defined by altitudes.

PropertyFormatDescription
nameTextThe name of the LandClass.
colorColorThe color to be applied to terrain that falls within the LandClass.
altitudeStartDecimalThe starting altitude of the LandClass. NOTE: Altitude is measured in fractions of defined height: altitude = (height - minHeight) / (maxHeight - minHeight).
altitudeEndDecimalThe ending altitude of the LandClass. Follows same measurement unit as altitudeStart.
lerpToNextBooleanWhether to blend into the next LandClass. Highly recommended to set to true on all but the last LandClass.