载入中...
搜索中...
未找到
Procedural.cpp 文件参考
#include "graphics/hair/Procedural.h"
#include "common/Diagnostic.h"
#include <algorithm>
#include <cmath>
#include <vector>
#include <glm/glm.hpp>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::graphics
 卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局参数。 数据模型与渲染/交互逻辑见 CardTypes.h。
 
namespace  eve::graphics::hair
 Procedural hair/fur card meshes + material/LOD helpers (no strand simulation).
 

函数

Result< StrandsDatas > eve::graphics::hair::generateOnMesh (const float *posXYZ, const float *nrmXYZ, int vertexCount, const uint32_t *indices, int indexCount, const ProceduralParams &params)
 Grow strands from area-weighted samples on an indexed triangle mesh.
 
Result< StrandsDatas > eve::graphics::hair::generateOnPlane (float sizeX, float sizeZ, const ProceduralParams &params)
 Grow strands on a Y-up XZ plane centered at the origin.
 

变量说明

◆ area

float area = 0.f

在文件 Procedural.cpp 第 16 行定义.

◆ i0

uint32_t i0 = 0

在文件 Procedural.cpp 第 15 行定义.

◆ i1

uint32_t i1 = 0

在文件 Procedural.cpp 第 15 行定义.

◆ i2

uint32_t i2 = 0

在文件 Procedural.cpp 第 15 行定义.

◆ n

glm::vec3 n {0.f, 1.f, 0.f}

在文件 Procedural.cpp 第 17 行定义.