#include "procgen/texture/CableTextures.h"#include "image/ImageData.h"#include "procgen/ParamSchema.h"#include "procgen/texture/NoiseField.h"#include "procgen/texture/PbrMaterial.h"#include "procgen/texture/TextureRecipe.h"#include <algorithm>#include <cmath>#include <cstdint>#include <string>#include <utility>#include <vector>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::procgen |
函数 | |
| eve::Result< std::unique_ptr< image::ImageData > > | eve::procgen::generateSteelCableTexture (const Params ¶ms) |
Generate a parameterized steel-cable braid albedo (tex.cable.steel). @ownership On success the caller exclusively owns the returned ImageData. | |
| eve::Result< std::unique_ptr< image::ImageData > > | eve::procgen::generateIronChainTexture (const Params ¶ms) |
Generate a parameterized iron / rusted metal albedo (tex.chain.iron). @ownership On success the caller exclusively owns the returned ImageData. | |
| eve::Result< std::unique_ptr< image::ImageData > > | eve::procgen::generateHempRopeTexture (const Params ¶ms) |
Generate a parameterized hemp-rope fiber albedo (tex.rope.hemp). @ownership On success the caller exclusively owns the returned ImageData. | |
| eve::Result< std::unique_ptr< PbrTextureSet > > | eve::procgen::generateSteelCablePbr (const Params ¶ms) |
Full PBR map set for steel cable (pbr.cable.steel). @ownership On success the caller exclusively owns the returned set and all maps. | |
| eve::Result< std::unique_ptr< PbrTextureSet > > | eve::procgen::generateIronChainPbr (const Params ¶ms) |
Full PBR map set for iron chain metal (pbr.chain.iron). @ownership On success the caller exclusively owns the returned set and all maps. | |
| eve::Result< std::unique_ptr< PbrTextureSet > > | eve::procgen::generateHempRopePbr (const Params ¶ms) |
Full PBR map set for hemp rope (pbr.rope.hemp). @ownership On success the caller exclusively owns the returned set and all maps. | |
| void | eve::procgen::registerCableTextureRecipes (TextureRecipeRegistry ®istry) |
Register tex.cable.steel / tex.chain.iron / tex.rope.hemp. | |
| void | eve::procgen::registerCablePbrRecipes (PbrRecipeRegistry ®istry) |
Register pbr.cable.steel / pbr.chain.iron / pbr.rope.hemp. | |
变量说明
◆ albedo
| std::unique_ptr<image::ImageData> albedo |
在文件 CableTextures.cpp 第 46 行定义.
◆ aoStrength
| float aoStrength = 1.2f |
在文件 CableTextures.cpp 第 58 行定义.
◆ b
| float b = 0.f |
在文件 CableTextures.cpp 第 33 行定义.
◆ colors
| int colors = 8 |
在文件 CableTextures.cpp 第 152 行定义.
◆ contrast
| float contrast = 0.55f |
在文件 CableTextures.cpp 第 151 行定义.
被这些函数引用 eve::procgen::GtsHeightBlendSet::addLayer() , 以及 eve::graphics::MapFog::setCloudDensity().
◆ g
| float g = 0.f |
在文件 CableTextures.cpp 第 33 行定义.
◆ gap
| float gap = 0.12f |
◆ h
| int h = 0 |
在文件 CableTextures.cpp 第 50 行定义.
◆ height
| std::vector<float> height |
在文件 CableTextures.cpp 第 47 行定义.
◆ heightStrength
| float heightStrength = 1.f |
在文件 CableTextures.cpp 第 59 行定义.
◆ metallic
| float metallic = 0.85f |
在文件 CableTextures.cpp 第 56 行定义.
◆ normalStrength
| float normalStrength = 5.f |
◆ r
| float r = 0.f |
在文件 CableTextures.cpp 第 33 行定义.
◆ roughnessHigh
| float roughnessHigh = 0.75f |
在文件 CableTextures.cpp 第 55 行定义.
◆ roughnessLow
| float roughnessLow = 0.35f |
在文件 CableTextures.cpp 第 54 行定义.
◆ seamless
| bool seamless = true |
◆ strands
| int strands = 6 |
在文件 CableTextures.cpp 第 147 行定义.
被这些函数引用 eve::graphics::hair::GroomInstance::bakeProceduralMesh(), eve::graphics::hair::GroomInstance::bakeProceduralPlane(), eve::graphics::hair::GroomBinding::build(), eve::graphics::hair::ClusterGrid::build(), eve::graphics::hair::buildGuideWeights(), eve::graphics::hair::buildRibbons(), eve::graphics::hair::extractGuides(), eve::procgen::generateCableChainRope(), eve::graphics::hair::GroomInstance::rebuild() , 以及 eve::graphics::hair::GroomInstance::update().
◆ twist
| float twist = 2.f |
在文件 CableTextures.cpp 第 148 行定义.
被这些函数引用 eve::procgen::generateLSystemMesh().
◆ w
| int w = 0 |
在文件 CableTextures.cpp 第 49 行定义.
◆ wear
| float wear = 0.25f |
在文件 CableTextures.cpp 第 150 行定义.