载入中...
搜索中...
未找到
TerrainNoiseMask.h
浏览该文件的文档.
1#pragma once
2
3#include <cstdint>
4#include "common/Result.h"
5
6namespace eve::procgen {
7class Heightmap;
8enum class TerrainMaskBlend;
9
12
15 float translationX = 0, translationZ = 0;
16 float scaleX = 10, scaleZ = 10, rotation = 0;
17 float octaves = 8, amplitude = 0.5F, frequency = 1, persistence = 0.5F, lacunarity = 2;
18 float warpIterations = 0, warpStrength = 0.5F, warpOffsetX = 2.5F, warpOffsetZ = 1.4F;
19 uint32_t seed = 0;
21};
22
36 const Heightmap& curve,
38 TerrainMaskBlend mode);
39} // 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
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 > generateTerrainNoiseMask(Heightmap &target, const Heightmap &input, const Heightmap &curve, const TerrainNoiseMaskSettings &s, TerrainMaskBlend mode)
Generate a transformed Pcg-style fBm noise source, curve it, then combine it with an input mask.
TerrainMaskBlend
Ordered scalar-mask arithmetic; intermediate values are not clamped.
Definition TerrainStamp.h:9
TerrainNoiseType
Pcg NoiseLib families available to the native scalar mask generator.
Value-only 2D NoiseMask transform, fBm, optional domain-warp and deterministic-stream settings.