载入中...
搜索中...
未找到
PbrMaterial.h 文件参考
#include "procgen/Params.h"
#include "procgen/texture/TextureRecipe.h"
#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>

浏览源代码.

类

struct  eve::procgen::PbrTextureSet
 Owning metallic-roughness PBR map set; destruction releases all maps. Image accessors return borrows valid until destroy() or set destruction; callers must not delete individual images. Maps share one pixel/UV domain; pigment may vary independently of the physical displacement field. @thread Mutable maps require caller synchronization; no callbacks are invoked. 更多...
 
class  eve::procgen::PbrRecipeRegistry
 EVENGINE_API_DOMAINS public API. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::image
 
namespace  eve::procgen
 

类型定义

using eve::procgen::PbrRecipeFn = std::function< std::unique_ptr< PbrTextureSet >(const Params &params, std::string &error)>
 Recipe returns a newly owned full PBR set, or null on failure.
 

函数

std::unique_ptr< PbrTextureSet > eve::procgen::generatePbrSet (const TextureRecipeDef &def, const Params &params, std::string &error)
 Builds a full PBR set from a texture definition and returns unique ownership.
 
std::unique_ptr< image::ImageData > eve::procgen::grayscaleImage (const std::vector< float > &values, int w, int h)
 Builds a grayscale RGBA8 image and returns unique ownership to the caller.