载入中...
搜索中...
未找到
GroomAsset.cpp
浏览该文件的文档.
Stable, structured diagnostics shared by engine modules.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
const GroomGroup * groupAt(size_t index) const
Definition GroomAsset.cpp:40
const GroomGroup * findGroupById(uint32_t groupId) const
Definition GroomAsset.cpp:45
Result< void > validate() const
Validate every group strands buffer and LOD table.
Definition GroomAsset.cpp:54
Result< void > addGroup(GroomGroup group)
Append a group; fails when name is empty or groupId collides. @ownership group is moved into the asse...
Definition GroomAsset.cpp:9
Procedural hair/fur card meshes + material/LOD helpers (no strand simulation).
Definition Graphics.h:58
size_t selectLodIndex(const std::vector< GroomLod > &lods, float screenSize)
Pick the LOD index for a given screen size (largest screenSize ≤ query).
Definition GroomAsset.cpp:75
@ InvalidArgument
@ AlreadyExists
@ InvariantViolation
One groom group (UE hair group analogue: bangs / scalp / beard …). @ownership Owned by GroomAsset.
Definition GroomAsset.h:31
float screenSize
Switch to this LOD when screen size falls below this value (0..1).
Definition GroomAsset.h:19