Skip to main content

PaintModifiers

A class in Root.Township, Alta.Forests.

Spawn modifier that paints up to two terrain splat layers, scaled by a 0 to 1 score.

Constructors​

MemberWhat it is
PaintModifiers()Creates a PaintModifiers with default values.

Fields​

5 private and internal fields
MemberWhat it is
private bool isForcedWhen true, overwrites the layers instead of only raising them.
private int layer1First splat layer index.
private float layer1StrengthStrength of the first layer at a full score.
private int layer2Second splat layer index.
private float layer2StrengthStrength of the second layer at a full score.

Methods​

MemberWhat it is
void Apply(ref SplatData data, float score)Writes both layers into the splat data at their strength times the score; unless forced, only where that's stronger than what's there.

Used in​

Members of other types that take, return or hold a PaintModifiers: