载入中...
搜索中...
未找到
VegetationPacking.cpp
浏览该文件的文档.
8bool finite(glm::vec3 value) { return std::isfinite(value.x) && std::isfinite(value.y) && std::isfinite(value.z); }
13glm::vec2 unpack(float value) { return {std::floor(value / 2048.f) / 2047.f, std::fmod(value, 2048.f) / 2047.f}; }
15Result<std::vector<VegetationVertex>> decodeTveVegetationVertices(std::span<const TvePackedVertex> vertices) {
23 !finite(v.texcoord1) || !finite(v.texcoord3) || !packed(v.texcoord0.z) || !packed(v.texcoord0.w) || !masks)
25 Diagnostic::error(DiagnosticCode::InvalidArgument, "invalid TVE vertex attribute or packed pair", {},
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
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Result< std::vector< VegetationVertex > > decodeTveVegetationVertices(std::span< const TvePackedVertex > vertices)
Decode TVE 12.x color/motion/bounds/detail/pivot packing to native rest vertices. Borrows input only ...
Definition VegetationPacking.cpp:15
@ InvalidArgument
@ Failed
Owning rest vertex in object space, with unpacked authoring channels. Bending/branch/flutter/variatio...
Definition VegetationMotion.h:21