Orrery Terrain · OrreryTerrain module · function
BrushBake::
FromSplatPixels
Bake raw 8-bit RGBA pixels from game code, as FromSplatRgba16 does.
Declaration
EOrreryTerrainBrushBake FromSplatPixels(const uint8* Bytes, int64 Count, int32 Width, int32 Height, uint32 Used, const FBakeSpec& Spec,
std::shared_ptr<const OrreryTerrain::Native::FBrushMask> (&OutMasks)[kSplatChannels]);- Header
#include "OrreryTerrainBrushAsset.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrain");in your module’s Build.cs.- Stability
- Stable: changes within a major version only add.
- Thread
- Any thread.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Bytes | const uint8* | — | Width x Height x 4 bytes, R G B A per pixel, row-major. |
Count | int64 | — | Bytes in the array; must be exactly Width x Height x 4. |
Width | int32 | — | Pixels a row. |
Height | int32 | — | Rows. |
Used | uint32 | — | Bit c set: channel c becomes a mask (bit 0 red to bit 3 alpha). |
Spec | const FBake | — | The bake settings, as FromSplatRgba16. |
OutMasks | std:: | — | Per channel, its mask on Ok when used, else null. |
Returns
Ok, BadPixels, BadSize or Refused.
Note.
Any thread.