载入中...
搜索中...
未找到
Guides.h
浏览该文件的文档.
45[[nodiscard]] EVENGINE_API_BACKENDS Result<StrandsDatas> extractGuides(const StrandsDatas &strands,
65interpolateStrands(const StrandsDatas &strandsRest, const StrandsDatas &guidesRest, const StrandsDatas &guidesDeformed,
Move-only, checked operation results for the common layer.
CPU-authoritative strand buffer (UE FHairStrandsDatas analogue).
Definition StrandsDatas.h:44
Procedural hair/fur card meshes + material/LOD helpers (no strand simulation).
Definition Graphics.h:58
InterpolationMode
How render strands follow deformed guides (UE interpolation analogue).
Definition Guides.h:19
Result< StrandsDatas > extractGuides(const StrandsDatas &strands, float guideFraction)
Pick a deterministic subset of curves as guides (density thinning).
Definition Guides.cpp:56
Result< StrandsDatas > 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 u...
Definition Guides.cpp:154
Result< std::vector< StrandGuideWeights > > buildGuideWeights(const StrandsDatas &strands, const StrandsDatas &guides, int maxInfluences, InterpolationMode mode)
Build k-nearest guide weights for every render strand (by root distance).
Definition Guides.cpp:103
Up to kMaxInfluences guides influencing one render strand. @ownership Owned by the weights table retu...
Definition Guides.h:31
GuideInfluence influencers[kMaxInfluences]
Definition Guides.h:33
static constexpr int kMaxInfluences
Definition Guides.h:32