载入中...
搜索中...
未找到
VegetationMotion.cpp 文件参考
#include "graphics/VegetationMotion.h"
#include <algorithm>
#include <cmath>
#include <glm/common.hpp>
#include <glm/geometric.hpp>
#include <glm/matrix.hpp>
#include <limits>
#include <new>

浏览源代码.

命名空间

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

函数

Result< VegetationGeometry > eve::graphics::deformVegetation (const VegetationField &field, std::span< const VegetationVertex > vertices, const VegetationMotion &motion)
 Evaluate plant bending, squash, rolling, flutter, interaction and perspective. Worker-safe with immutable field/inputs; no retained borrows, callbacks or GPU calls. Normals use a local deformation Jacobian with masks held constant, followed by the inverse-transpose transform. Evaluating derivatives before world translation avoids large-coordinate cancellation. Geometry is tolerance-bounded across platforms; no bit-exact transcendental or GPU half-precision equivalence is claimed.
 

变量说明

◆ globalDirection

glm::vec3 globalDirection

在文件 VegetationMotion.cpp 第 43 行定义.

◆ highlight

float highlight

◆ inverseModel

glm::mat3 inverseModel

在文件 VegetationMotion.cpp 第 42 行定义.

◆ normalMatrix

glm::mat3 normalMatrix

在文件 VegetationMotion.cpp 第 42 行定义.

◆ parentScale

glm::vec3 parentScale

在文件 VegetationMotion.cpp 第 43 行定义.

◆ position

glm::vec3 position

在文件 VegetationMotion.cpp 第 62 行定义.

◆ time

double time

在文件 VegetationMotion.cpp 第 44 行定义.