载入中...
搜索中...
未找到
PbrMaterial.h 文件参考
#include "procgen/Params.h"
#include "procgen/texture/TextureRecipe.h"
#include <cstdint>
#include <functional>
#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
 

命名空间

namespace  eve
 
namespace  eve::image
 
namespace  eve::procgen
 

类型定义

using eve::procgen::PbrRecipeFn = std::function< PbrTextureSet *(const Params &params, std::string &error)>
 Recipe returns a full PBR set (caller owns), or nullptr on failure.
 

函数

PbrTextureSeteve::procgen::generatePbrSet (const TextureRecipeDef &def, const Params &params, std::string &error)
 Build a full PBR set from a texture definition. Caller owns the result.
 
image::ImageDataeve::procgen::grayscaleImage (const std::vector< float > &values, int w, int h)
 Build a grayscale RGBA8 image from per-pixel values in [0,1]. Caller owns.