Orrery Terrain · OrreryTerrain module · function
BrushBake::
FromSplatTexture
Bake a texture's four channels, as FromSplatRgba16 does; the texture is read as FromTexture reads it (the editor's untouched source, else a CPU copy; never a GPU readback).
Declaration
EOrreryTerrainBrushBake FromSplatTexture(UTexture2D* Texture, 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
- Game thread.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Texture | UTexture2 | — | — |
Used | uint32 | — | — |
Spec | const FBake | — | — |
OutMasks | std:: | — | — |
Returns
Ok, NoSource, NoCpuCopy, BadImage, BadSize or Refused.
Note.
Game thread.