载入中...
搜索中...
未找到
CableTextures.cpp 文件参考
#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 &params)
 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 &params)
 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 &params)
 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 &params)
 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 &params)
 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 &params)
 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 &registry)
 Register tex.cable.steel / tex.chain.iron / tex.rope.hemp.
 
void eve::procgen::registerCablePbrRecipes (PbrRecipeRegistry &registry)
 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

◆ g

float g = 0.f

在文件 CableTextures.cpp 第 33 行定义.

◆ gap

◆ 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

◆ 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

◆ strands

◆ 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 行定义.