Orbdale Terrain · OrbdaleTerrain · namespace
OrbdaleTerrain::
BrushBake
Declared in OrbdaleTerrain. Its members are listed below, by kind.
Functions
- NearestSide
The nearest power of two to Side in 8 to 2048 (a tie goes up).
- ResolveSide
The side a spec bakes to: Side rounded by NearestSide, or 256 (Strength) or 1024 (Height) when Side is 0.
- ResolveBits
The bits a spec bakes to: 8 or 16.
- FromPlane
Bake one 16-bit plane: resample to the spec's side, invert, quantise to its depth and make the mask.
- FromPixels
Bake raw single-channel pixels from game code.
- FromTiff
Bake a 16-bit (or 8-bit or floating point) single-band TIFF.
- FromTexture
Bake a texture.
- FromSplatRgba16
Bake an RGBA image into up to four step masks, one per used channel (splat paint).
- FromSplatPixels
Bake raw 8-bit RGBA pixels from game code, as FromSplatRgba16 does.
- 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).
Constants
| Name | Type | Default | Meaning |
|---|---|---|---|
k | int32 | 8192 | Source image sizes above this many pixels a side are refused (BadSize). |
k | int32 | 4 | Channels a splat image holds: red, green, blue, alpha, in that order. |