载入中...
搜索中...
未找到
PbrMaterial.h
浏览该文件的文档.
65using PbrRecipeFn = std::function<std::unique_ptr<PbrTextureSet>(const Params ¶ms, std::string &error)>;
110[[nodiscard]] EVENGINE_API_DOMAINS std::unique_ptr<PbrTextureSet> generatePbrSet(const TextureRecipeDef &def,
115[[nodiscard]] std::unique_ptr<image::ImageData> grayscaleImage(const std::vector<float> &values, int w, int h);
@ ImageData
Definition AvatarInstance.h:26
Definition EvpackPointGraphLoader.h:12
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:125
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:137
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:65
Owning metallic-roughness PBR map set; destruction releases all maps. Image accessors return borrows ...
Definition PbrMaterial.h:26
image::ImageData * getRoughness() const
Return the generated roughness image.
Definition PbrMaterial.h:53
float getTransmission() const
Return optical transmission, independent of alpha coverage.
Definition PbrMaterial.h:45
PbrTextureSet(const PbrTextureSet &)=delete
image::ImageData * getMetallic() const
Return the generated metallic image.
Definition PbrMaterial.h:55
image::ImageData * getAo() const
Return the generated ambient-occlusion image.
Definition PbrMaterial.h:59
PbrTextureSet & operator=(const PbrTextureSet &)=delete
Complete metadata and parameter schema shared by every procgen recipe family.
Definition ParamSchema.h:52
A procedural texture is described by an albedo ramp, displacement, optional independent PBR pigment f...
Definition TextureRecipe.h:122