载入中...
搜索中...
未找到
#include "procgen/texture/TextureRecipe.h"#include "image/ImageData.h"#include <algorithm>#include <cctype>#include <cmath>#include <utility>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::procgen |
函数 | |
| RecipeDescriptor | eve::procgen::makeTextureRecipeDescriptor (const TextureRecipeDef &definition) |
| Build editable metadata for a texture definition. | |
| void | eve::procgen::fillHeightField (const TextureGenContext &ctx, const std::function< float(float, float, const NoiseField &)> &fn, std::vector< float > &height) |
Sample a height function over the full [w×h] grid into height (clamped to [0,1]). | |
| void | eve::procgen::paintHeightToImage (image::ImageData &img, const std::vector< float > &height, int w, int h, const ColorRamp &ramp, int bands, int pixelSize) |
| Paint height to image. | |
| std::unique_ptr< image::ImageData > | eve::procgen::heightToNormalImage (const std::vector< float > &height, int w, int h, float strength, bool seamless) |
| Builds a normal-map image and transfers its unique ownership to the caller. | |