载入中...
搜索中...
未找到
FloorTextures.cpp 文件参考
#include "procgen/texture/FloorTextures.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 <string_view>
#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::generateWoodFloorTexture (const Params &params)
 Generate a parameterized wood-floor albedo (tex.floor.wood). @ownership On success the caller exclusively owns the returned ImageData.
 
eve::Result< std::unique_ptr< image::ImageData > > eve::procgen::generateTileFloorTexture (const Params &params)
 Generate a parameterized ceramic / patterned floor-tile albedo (tex.floor.tile). @ownership On success the caller exclusively owns the returned ImageData.
 
eve::Result< std::unique_ptr< PbrTextureSet > > eve::procgen::generateWoodFloorPbr (const Params &params)
 Generate a full PBR map set for wood floors (pbr.floor.wood). @ownership On success the caller exclusively owns the returned set and all maps.
 
eve::Result< std::unique_ptr< PbrTextureSet > > eve::procgen::generateTileFloorPbr (const Params &params)
 Generate a full PBR map set for ceramic / patterned tiles (pbr.floor.tile). @ownership On success the caller exclusively owns the returned set and all maps.
 
void eve::procgen::registerFloorTextureRecipes (TextureRecipeRegistry &registry)
 Register tex.floor.wood and tex.floor.tile with schema metadata.
 
void eve::procgen::registerFloorPbrRecipes (PbrRecipeRegistry &registry)
 Register pbr.floor.wood and pbr.floor.tile with schema metadata.
 

变量说明

◆ albedo

std::unique_ptr<image::ImageData> albedo

在文件 FloorTextures.cpp 第 42 行定义.

◆ aoStrength

float aoStrength = 1.f

在文件 FloorTextures.cpp 第 54 行定义.

◆ b

float b = 0.f

在文件 FloorTextures.cpp 第 27 行定义.

◆ bevel

float bevel = 0.08f

在文件 FloorTextures.cpp 第 215 行定义.

◆ colorAlt

int colorAlt = 0

在文件 FloorTextures.cpp 第 570 行定义.

◆ colors

int colors = 8

在文件 FloorTextures.cpp 第 216 行定义.

◆ cols

◆ edge

float edge = 1.f

在文件 FloorTextures.cpp 第 282 行定义.

◆ g

float g = 0.f

在文件 FloorTextures.cpp 第 27 行定义.

◆ gap

float gap = 0.04f

在文件 FloorTextures.cpp 第 210 行定义.

◆ glaze

float glaze = 0.35f

◆ grain

float grain = 8.f

在文件 FloorTextures.cpp 第 211 行定义.

被这些函数引用 eve::demo::Demo::newPlanetTexture().

◆ grout

float grout = 0.06f

在文件 FloorTextures.cpp 第 242 行定义.

◆ h

int h = 0

在文件 FloorTextures.cpp 第 46 行定义.

◆ height

std::vector<float> height

在文件 FloorTextures.cpp 第 43 行定义.

◆ heightStrength

float heightStrength = 1.f

在文件 FloorTextures.cpp 第 55 行定义.

◆ idX

int idX = 0

在文件 FloorTextures.cpp 第 278 行定义.

◆ idY

int idY = 0

在文件 FloorTextures.cpp 第 279 行定义.

◆ inGap

bool inGap = false

在文件 FloorTextures.cpp 第 283 行定义.

◆ inGrout

bool inGrout = false

在文件 FloorTextures.cpp 第 569 行定义.

◆ layout

std::string layout = "planks"

◆ localU

float localU = 0.f

在文件 FloorTextures.cpp 第 280 行定义.

◆ localV

float localV = 0.f

在文件 FloorTextures.cpp 第 281 行定义.

◆ metallic

float metallic = 0.f

在文件 FloorTextures.cpp 第 52 行定义.

◆ motif

float motif = 0.55f

在文件 FloorTextures.cpp 第 247 行定义.

◆ normalStrength

float normalStrength = 4.f

在文件 FloorTextures.cpp 第 53 行定义.

◆ palette

◆ pattern

◆ pixelSize

◆ r

float r = 0.f

在文件 FloorTextures.cpp 第 27 行定义.

◆ roughnessHigh

float roughnessHigh = 0.85f

在文件 FloorTextures.cpp 第 51 行定义.

◆ roughnessLow

float roughnessLow = 0.55f

在文件 FloorTextures.cpp 第 50 行定义.

◆ rows

int rows = 6

在文件 FloorTextures.cpp 第 208 行定义.

被这些函数引用 eve::tensor::kernels::argmax(), eve::ui::DatabasePanel::build(), eve::procgen::TerrainMeshBuilder::build(), eve::procgen::buildGtsTerrainBaseMesh(), eve::physics::Cloth3D::Cloth3D(), eve::database::Query::count(), eve::physics::SoftBody3D::create(), eve::asset::detail::decodeBc3Rgba8(), eve::asset::detail::decodeTiffRgba8(), eve::physics::SoftBody3DRenderer::draw(), eve::tensor::onnx_detail::executeQuant(), eve::database::Repository< T >::find(), eve::dev::DevTool::formatProfileReport(), eve::physics::ClothModel::fromValue(), eve::tensor::wgsl_detail::genNorm(), eve::tensor::glsl_detail::genNorm(), eve::tensor::wgsl_detail::genSoftmax(), eve::tensor::glsl_detail::genSoftmax(), eve::model3d::ModelData::getInverseBindMatrixElement(), eve::physics::ClothModel::grid(), eve::dialogue::ConversationLocalizationCatalog::importCsv(), eve::tensor::kernels::layernorm(), eve::tensor::TF::layernorm(), eve::tensor::TF::layernormWB(), eve::agent::detail::makePolicyGraph(), eve::ui::measureNode(), eve::cloth::Cloth::newCloth(), eve::cloth::Cloth::newCloth3D(), eve::cloth::Cloth::newClothGPU(), eve::graphics::vulkan::Graphics::newMeshSphere(), eve::physics::Physics::newSoftBody3D(), eve::animation::Animation::newSpriteSheetFromSequence(), eve::procgen_editing::ProcgenScriptDocumentTarget::parseSpec(), eve::rts::FormationPlanner::plan(), eve::localization_editing::LocalizationVoiceAudition::play(), eve::tensor::kernels::reduceAxis(), eve::procgen::AttributeTable::resize(), eve::procgen::GtsTerrainLodSet::restoreJson(), eve::tensor::kernels::rmsnorm(), eve::tensor::TF::rmsnorm(), eve::tensor::TF::rmsnormW(), eve::hd2d::Sprite3D::setFrameGrid(), eve::animation::SpriteSheet::setGrid(), eve::tensor::kernels::softmax() , 以及 eve::ui::WidgetDesc::withGaps().

◆ seamless

bool seamless = true

在文件 FloorTextures.cpp 第 44 行定义.

◆ speckles

float speckles = 0.15f

在文件 FloorTextures.cpp 第 246 行定义.

◆ stain

float stain = 0.15f

在文件 FloorTextures.cpp 第 214 行定义.

◆ tilesX

int tilesX = 4

在文件 FloorTextures.cpp 第 240 行定义.

◆ tilesY

int tilesY = 4

在文件 FloorTextures.cpp 第 241 行定义.

◆ tone

std::string tone = "oak"

在文件 FloorTextures.cpp 第 207 行定义.

◆ w

int w = 0

在文件 FloorTextures.cpp 第 45 行定义.

◆ warp

◆ wear

float wear = 0.25f

在文件 FloorTextures.cpp 第 213 行定义.