Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainCore module · struct

Native::

FPaintWeights

The (layer, weight) pairs of one post's paint, heaviest first (ties by ascending layer id), weights summing to 255.

Declaration

struct FPaintWeights
Header
#include "Native/GroundSampling.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrainCore"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
The batch ground sampler: height, face and smoothed normals, slope, paint weights, ground class and the answer's precision for many positions in one call, on any thread, with no allocation once its scratch is warm. (the header’s rule)

Description

Count 0 = no answer.

Up to kPaintSlots pairs in v1.0; room for kMaxPaintSlots, so a later K of 8 changes no signature. Pairs past Count are (0, 0); no used pair has a weight of 0.

Properties

NameTypeDefaultMeaning
Countuint8_t0

Pairs in use, 0..kMaxPaintSlots (at most kPaintSlots in v1.0).

Layeruint8_t{}

Layer id, 0..255; 0 is the auto layer.

Weightuint8_t{}

1..255 for the first Count pairs, which sum to 255.