载入中...
搜索中...
未找到
#include "common/Export.h"#include "procgen/Params.h"#include "procgen/ParamSchema.h"#include "procgen/texture/ColorRamp.h"#include "procgen/texture/NoiseField.h"#include <cstdint>#include <functional>#include <memory>#include <string>#include <unordered_map>#include <vector>类 | |
| class | eve::procgen::TextureRecipeRegistry |
| EVENGINE_API_DOMAINS public API. 更多... | |
| struct | eve::procgen::TextureGenContext |
| TextureGenContext public API. 更多... | |
| 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 |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::image |
| namespace | eve::procgen |
类型定义 | |
| using | eve::procgen::TextureRecipeFn = std::function< std::unique_ptr< image::ImageData >(const Params ¶ms, std::string &error)> |
| Recipe returns a newly owned RGBA8 image, or null 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) |
| Paint height to image. | |
| 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]). | |
| 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. | |
| const std::vector< TextureRecipeDef > & | eve::procgen::builtinTextureDefs () |
| All built-in texture definitions (albedo + PBR). Populated lazily. | |
| RecipeDescriptor | eve::procgen::makeTextureRecipeDescriptor (const TextureRecipeDef &definition) |
| Build editable metadata for a texture definition. | |