Vixen
02b45cc4
csharp
public static class BrushFalloff

The four falloff curves, as functions of one number.

Read the guide page for this →

Remarks

Separated from TerrainBrush so the curve can be tested as arithmetic — each one is asserted to start at one, end at zero and never rise in between, which is what every consumer assumes and none of them checks.

⚠ The parameter is distance across the falloff band, not across the brush. Zero is the outer edge of the plateau and one is the outer edge of the brush; WeightAt is what converts a radius into it. Passing a fraction of the radius instead produces a brush whose plateau is not flat, which reads as a soft brush that will not make a flat surface.

Methods (1)

  • public static float Evaluate(BrushFalloffKind kind, float t)

    Evaluates a falloff curve.

Used by (2)

  • TerrainBrushVixen.Terrain
  • TerrainBrushTestsVixen.Terrain.Tests