Orrery Terrain · OrreryTerrainCore module · function
Native::
AutoLayerWeights
ExperimentalThe auto rules alone: how a unit of layer-0 weight splits over the layers at world position (WorldXCm, WorldYCm).
Declaration
void AutoLayerWeights(const FScatterLayerRules& Rules, double WorldXCm, double WorldYCm, float SlopeDeg, float WorldZCm,
float OutWeights[kScatterLayers]);- Header
#include "Native/TerrainScatter.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrainCore");in your module’s Build.cs.- Stability
- Experimental: supported, may change in a minor version, with a changelog line.
- Thread
- Tier 1: plain C++, no allocation, deterministic in canonical order (ascending candidate index), any thread. (the header’s rule)
Description
EffectiveLayerWeights adds the painted weights and scales this by W0.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Rules | const FScatter | — | — |
WorldXCm | double | — | — |
WorldYCm | double | — | — |
SlopeDeg | float | — | — |
WorldZCm | float | — | — |
OutWeights | float | — | — |