载入中...
搜索中...
未找到
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
 Full metallic-roughness PBR map set. All maps are caller-owned; call destroy() (or delete each pointer) when done. Maps are derived from one shared displacement field so albedo, normal, height, roughness, metallic and AO line up pixel-for-pixel. 更多...
 
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.