载入中...
搜索中...
未找到
Guides.cpp 文件参考
#include "graphics/hair/Guides.h"
#include "common/Diagnostic.h"
#include <algorithm>
#include <cstddef>
#include <cmath>
#include <limits>
#include <utility>
#include <glm/geometric.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::extractGuides (const StrandsDatas &strands, float guideFraction)
 Pick a deterministic subset of curves as guides (density thinning).
 
Result< std::vector< StrandGuideWeights > > eve::graphics::hair::buildGuideWeights (const StrandsDatas &strands, const StrandsDatas &guides, int maxInfluences=3, InterpolationMode mode=InterpolationMode::Offset)
 Build k-nearest guide weights for every render strand (by root distance).
 
Result< StrandsDatas > eve::graphics::hair::interpolateStrands (const StrandsDatas &strandsRest, const StrandsDatas &guidesRest, const StrandsDatas &guidesDeformed, const std::vector< StrandGuideWeights > &weights, InterpolationMode mode)
 Drive rest render strands with deformed guides using precomputed weights. @ownership Returned datas uniquely owned by the caller; inputs unchanged.