Orrery Terrain · OrreryTerrainCore module · function
Native::
DecodePaint
The weights of one canonical post (FPaintSlots): its used pairs, zero weights dropped.
Overload 1
The weights of one canonical post (FPaintSlots): its used pairs, zero weights dropped.
constexpr FPaintWeights DecodePaint(const FPaintSlots& Paint);- 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
- Pure, constant-evaluable, any thread.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Paint | const FPaint | — | — |
Note.
Pure, constant-evaluable, any thread.
Overload 2
Decode one post of a tile's paint slot planes (channel ids 16-30) into weights.
inline FPaintWeights DecodePaint(const FPaintPlanes& Planes, size_t Post, int32_t K = kPaintSlots);- 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
- Pure, any thread.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Planes | const FPaint | — | The tile's planes; an absent plane reads 0 (PaintSlots.h). |
Post | size_ | — | Post index within the tile. |
K | int32_ | k | Slots to read, clamped to 1..kMaxPaintSlots. |
Note.
Pure, any thread. A post that is not canonical decodes as read; the world and the loaders keep posts canonical.