Orbdale Terrain · OrbdaleTerrainCore module · function
Native::
ScatterSubCellQuads
ExperimentalThe quads of sub-cell (SubX, SubY), half-open: [OutQ0X, OutQ1X) × [OutQ0Y, OutQ1Y).
Declaration
void ScatterSubCellQuads(int32_t Posts, int32_t SubX, int32_t SubY, int32_t& OutQ0X, int32_t& OutQ1X, int32_t& OutQ0Y, int32_t& OutQ1Y);- Header
#include "Native/TerrainScatter.h"- Module
PublicDependencyModuleNames.Add("OrbdaleTerrainCore");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
A candidate belongs to the sub-cell whose half-open rectangle holds it, so the posts two tiles share never place twice. Sub-cells past the chunk's quads are empty (Q0 == Q1).
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Posts | int32_ | — | — |
SubX | int32_ | — | — |
SubY | int32_ | — | — |
OutQ0X | int32_ | — | — |
OutQ1X | int32_ | — | — |
OutQ0Y | int32_ | — | — |
OutQ1Y | int32_ | — | — |