A procedural texture is described by an albedo ramp, displacement, optional independent PBR pigment field and PBR controls. Both an albedo recipe and a full PBR set (albedo/normal/roughness/metallic/height/ao) are produced. 更多...
#include <TextureRecipe.h>
Public 属性 | |
| std::string | id |
| ColorRamp | albedo |
| std::function< float(float, float, const NoiseField &)> | height |
| Float. | |
| PbrParams | pbr |
| std::function< float(float, float, const NoiseField &)> | colorField |
| Optional pigment field, independent of physical relief; empty uses height. | |
| std::function< float(float, float, const NoiseField &)> | roughnessField |
| Optional independent microfacet field, mapped through roughnessLow/High. | |
详细描述
A procedural texture is described by an albedo ramp, displacement, optional independent PBR pigment field and PBR controls. Both an albedo recipe and a full PBR set (albedo/normal/roughness/metallic/height/ao) are produced.
在文件 TextureRecipe.h 第 122 行定义.
类成员变量说明
◆ albedo
| ColorRamp eve::procgen::TextureRecipeDef::albedo |
◆ colorField
| std::function<float(float, float, const NoiseField &)> eve::procgen::TextureRecipeDef::colorField |
Optional pigment field, independent of physical relief; empty uses height.
在文件 TextureRecipe.h 第 129 行定义.
被这些函数引用 eve::procgen::EverydayMaterials::generate() , 以及 eve::procgen::generatePbrSet().
◆ height
| std::function<float(float, float, const NoiseField &)> eve::procgen::TextureRecipeDef::height |
Float.
在文件 TextureRecipe.h 第 126 行定义.
被这些函数引用 eve::procgen::EverydayMaterials::generate(), eve::procgen::generatePbrSet() , 以及 eve::procgen::potteryTextureDefinitions().
◆ id
| std::string eve::procgen::TextureRecipeDef::id |
在文件 TextureRecipe.h 第 123 行定义.
被这些函数引用 eve::procgen::EverydayMaterials::generate() , 以及 eve::procgen::potteryTextureDefinitions().
◆ pbr
| PbrParams eve::procgen::TextureRecipeDef::pbr |
◆ roughnessField
| std::function<float(float, float, const NoiseField &)> eve::procgen::TextureRecipeDef::roughnessField |
Optional independent microfacet field, mapped through roughnessLow/High.
在文件 TextureRecipe.h 第 131 行定义.
被这些函数引用 eve::procgen::EverydayMaterials::generate() , 以及 eve::procgen::generatePbrSet().
该结构体的文档由以下文件生成:
- src/modules/procgen/texture/TextureRecipe.h