载入中...
搜索中...
未找到
TerrainImageMask.h
浏览该文件的文档.
1#pragma once
2#include "common/Result.h"
3
4namespace eve::procgen {
5class Heightmap;
6enum class TerrainMaskBlend;
11 float offsetX = 0, offsetZ = 0, scaleX = 1, scaleZ = 1, rotation = 0;
12 float red = 1, green = 1, blue = 1, accuracy = 0;
13 bool tiling = false;
15};
36 Heightmap& target, const Heightmap& input, const Heightmap& red, const Heightmap& green, const Heightmap& blue,
38
52 const Heightmap& source,
53 const Heightmap& curve,
55 TerrainMaskBlend mode);
56} // namespace eve::procgen
LogicalId target
EvpackChunkInput input
Definition Evpack.cpp:170
#define EVENGINE_API_DOMAINS
Definition Export.h:110
Move-only, checked operation results for the common layer.
Heightmap curve
TerrainThermalSettings settings
const UnitySourceAsset & source
Move-only operation result carrying either a value or Status.
Definition Result.h:155
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
Result< int > generateTerrainImageMask(Heightmap &target, const Heightmap &input, const Heightmap &red, const Heightmap &green, const Heightmap &blue, const Heightmap &alpha, const Heightmap &curve, const TerrainImageMaskSettings &s, TerrainMaskBlend mode)
Generate the reference image-mask filter from borrowed RGBA scalar planes.
Result< int > applyTerrainGlobalSpawnerMask(Heightmap &target, const Heightmap &input, const Heightmap &source, const Heightmap &curve, const TerrainImageMaskSettings &settings, TerrainMaskBlend mode)
Apply a scalar GlobalSpawnerMaskStack output through Pcg's image-mask transform, curve and blend pass...
TerrainMaskBlend
Ordered scalar-mask arithmetic; intermediate values are not clamped.
Definition TerrainStamp.h:9
TerrainImageFilter
Reference image selection modes; MaximumRgb is not luminance.
Image UV transform and color-selection settings, rotation in radians.