载入中...
搜索中...
未找到
PbrMaterial.h
浏览该文件的文档.
52using PbrRecipeFn = std::function<std::unique_ptr<PbrTextureSet>(const Params ¶ms, std::string &error)>;
97[[nodiscard]] std::unique_ptr<PbrTextureSet> generatePbrSet(const TextureRecipeDef &def, const Params ¶ms,
101[[nodiscard]] std::unique_ptr<image::ImageData> grayscaleImage(const std::vector<float> &values, int w, int h);
@ ImageData
Definition AvatarInstance.h:25
Definition EvpackPointGraphLoader.h:12
std::unique_ptr< PbrTextureSet > generatePbrSet(const TextureRecipeDef &def, const Params ¶ms, std::string &error)
Builds a full PBR set from a texture definition and returns unique ownership.
Definition PbrMaterial.cpp:112
std::unique_ptr< image::ImageData > grayscaleImage(const std::vector< float > &values, int w, int h)
Builds a grayscale RGBA8 image and returns unique ownership to the caller.
Definition PbrMaterial.cpp:100
std::function< std::unique_ptr< PbrTextureSet >(const Params ¶ms, std::string &error)> PbrRecipeFn
Recipe returns a newly owned full PBR set, or null on failure.
Definition PbrMaterial.h:52
Full metallic-roughness PBR map set. All maps are caller-owned; call destroy() (or delete each pointe...
Definition PbrMaterial.h:25
image::ImageData * getRoughness() const
Return the generated roughness image.
Definition PbrMaterial.h:40
image::ImageData * getMetallic() const
Return the generated metallic image.
Definition PbrMaterial.h:42
image::ImageData * getAo() const
Return the generated ambient-occlusion image.
Definition PbrMaterial.h:46
Complete metadata and parameter schema shared by every procgen recipe family.
Definition ParamSchema.h:52
A procedural texture is fully described by an albedo ramp + a displacement field + PBR knobs....
Definition TextureRecipe.h:122