载入中...
搜索中...
未找到
#include "procgen/Params.h"#include "procgen/texture/ColorRamp.h"#include "procgen/texture/NoiseField.h"#include <cstdint>#include <functional>#include <string>#include <unordered_map>#include <vector>类 | |
| class | eve::procgen::TextureRecipeRegistry |
| struct | eve::procgen::TextureGenContext |
| struct | eve::procgen::PbrParams |
| PBR surface defaults for a generated material. Every map in a PBR set is derived from the same displacement field (see TextureRecipeDef). 更多... | |
| struct | eve::procgen::TextureRecipeDef |
| A procedural texture is fully described by an albedo ramp + a displacement field + PBR knobs. From one definition both an albedo recipe (ImageData) and a full PBR set (albedo/normal/roughness/metallic/height/ao) are produced. 更多... | |
命名空间 | |
| namespace | eve |
| namespace | eve::image |
| namespace | eve::procgen |
类型定义 | |
| using | eve::procgen::TextureRecipeFn = std::function< image::ImageData *(const Params ¶ms, std::string &error)> |
| Recipe returns a new RGBA8 ImageData (caller owns), or nullptr on failure. | |
函数 | |
| void | eve::procgen::paintHeightToImage (image::ImageData &img, const std::vector< float > &height, int w, int h, const ColorRamp &ramp, int bands, int pixelSize) |
| 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]). | |
| image::ImageData * | eve::procgen::heightToNormalImage (const std::vector< float > &height, int w, int h, float strength, bool seamless) |
| const std::vector< TextureRecipeDef > & | eve::procgen::builtinTextureDefs () |
| All built-in texture definitions (albedo + PBR). Populated lazily. | |