CPU material factory with bounded, intuitive parameters. @ownership Returned sets uniquely own their maps. Inputs are borrowed only for the call. @thread Any thread with distinct inputs; no callbacks, registry access or retained pointers. 更多...
#include <EverydayMaterials.h>
静态 Public 成员函数 | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | generate (EverydayMaterial family, const Params ¶ms) |
| Generate six aligned maps and optical surface metadata. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | wood (const Params ¶ms) |
| Generate wood using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | metal (const Params ¶ms) |
| Generate metal using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | rubber (const Params ¶ms) |
| Generate rubber using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | cloth (const Params ¶ms) |
| Generate cloth using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | plastic (const Params ¶ms) |
| Generate plastic using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | steel (const Params ¶ms) |
| Generate steel using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | glass (const Params ¶ms) |
| Generate glass using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | paper (const Params ¶ms) |
| Generate paper using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | aluminum (const Params ¶ms) |
| Generate aluminum using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | castIron (const Params ¶ms) |
| Generate castiron using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | cement (const Params ¶ms) |
| Generate cement using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | paint (const Params ¶ms) |
| Generate paint using the shared pipeline. | |
| static eve::Result< std::unique_ptr< PbrTextureSet > > | marble (const Params ¶ms) |
| Generate marble using the shared pipeline. | |
详细描述
CPU material factory with bounded, intuitive parameters. @ownership Returned sets uniquely own their maps. Inputs are borrowed only for the call. @thread Any thread with distinct inputs; no callbacks, registry access or retained pointers.
- 备注
- Same seed and effective parameters give identical bytes on one toolchain; floating-point noise may differ across platforms. No simulation time or global RNG.
在文件 EverydayMaterials.h 第 30 行定义.
成员函数说明
◆ aluminum()
|
inlinestatic |
Generate aluminum using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 84 行定义.
引用了 params.
◆ castIron()
|
inlinestatic |
Generate castiron using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 89 行定义.
引用了 params.
◆ cement()
|
inlinestatic |
Generate cement using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 94 行定义.
引用了 params.
◆ cloth()
|
inlinestatic |
Generate cloth using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 59 行定义.
引用了 params.
◆ generate()
|
static |
Generate six aligned maps and optical surface metadata.
- 参数
-
family Surface family. params Size/seed and optional scale, detail, finish, variation, tintR/G/B. Finite controls are clamped; invalid typed/nonfinite values use defaults.
- 返回
- Owned set or InvalidArgument for unsupported family/size above 2048. @cost Expensive: linear in pixel count plus shared cavity sampling; generate once and reuse.
在文件 EverydayMaterials.cpp 第 31 行定义.
引用了 eve::procgen::ColorRamp::add(), eve::procgen::TextureRecipeDef::albedo, eve::procgen::PbrParams::aoStrength, b, eve::procgen::TextureRecipeDef::colorField, detail, error, eve::Diagnostic::error(), eve::Failed, g, eve::procgen::generatePbrSet(), eve::procgen::Glass, eve::procgen::TextureRecipeDef::height, eve::procgen::TextureRecipeDef::id, index, eve::InvalidArgument, eve::procgen::Marble, eve::procgen::PbrParams::metallic, eve::procgen::PbrParams::normalStrength, params, eve::procgen::TextureRecipeDef::pbr, r, roughness, eve::procgen::TextureRecipeDef::roughnessField, eve::procgen::PbrParams::roughnessHigh, eve::procgen::PbrParams::roughnessLow, s, eve::procgen::raster_detail::sample(), eve::procgen::detail::sampleEveryday(), seed, eve::procgen::Params::setBool(), eve::procgen::Params::setFloat(), eve::procgen::Params::setInt(), eve::procgen::Params::setSeed(), eve::procgen::Params::setSize(), t, tint, u, v, eve::procgen::Wood, x , 以及 y.
被这些函数引用 eve::procgen::PbrRecipeRegistry::registerPbrBuiltins().
◆ glass()
|
inlinestatic |
Generate glass using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 74 行定义.
引用了 params.
◆ marble()
|
inlinestatic |
Generate marble using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 104 行定义.
引用了 params.
◆ metal()
|
inlinestatic |
Generate metal using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 49 行定义.
引用了 params.
◆ paint()
|
inlinestatic |
Generate paint using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 99 行定义.
引用了 params.
◆ paper()
|
inlinestatic |
Generate paper using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 79 行定义.
引用了 params.
◆ plastic()
|
inlinestatic |
Generate plastic using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 64 行定义.
引用了 params.
◆ rubber()
|
inlinestatic |
Generate rubber using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 54 行定义.
引用了 params.
◆ steel()
|
inlinestatic |
Generate steel using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 69 行定义.
引用了 params.
◆ wood()
|
inlinestatic |
Generate wood using the shared pipeline.
- 参数
-
params See generate().
- 返回
- Owned maps or structured diagnostic. @cost Expensive per pixel; cache the result.
在文件 EverydayMaterials.h 第 44 行定义.
引用了 params.
该类的文档由以下文件生成:
- src/modules/procgen/texture/EverydayMaterials.h
- src/modules/procgen/texture/EverydayMaterials.cpp