载入中...
搜索中...
未找到
VegetationWind.h 文件参考
#include <array>
#include <glm/glm.hpp>
#include "common/Result.h"

浏览源代码.

类

struct  eve::graphics::VegetationWindState
 Caller-owned wind globals; no hidden clock, singleton or retained scene link. 更多...
 
struct  eve::graphics::VegetationWindAudioState
 Caller-owned state for Pcg WindManager's looping wind-audio volume controller. 更多...
 
struct  eve::graphics::VegetationWindProfile
 Caller-owned material wind controls; billboard suppresses source branch and leaf motion. AlphaTest controls leaf motion only, independently of the renderer's alpha discard. 更多...
 
struct  eve::graphics::VegetationWindInput
 Explicit source PW_GeneralWind inputs in object/world coordinates. 更多...
 

命名空间

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

函数

Result< void > eve::graphics::advanceVegetationWindAudio (VegetationWindAudioState &state, float windStrength, float transitionTime, float dt, bool enabled, bool clipAvailable)
 Advance Pcg WindManager CheckWindVolume and ProcessWindAudio as a pure state transition.
 
Result< std::array< float, 14 > > eve::graphics::packVegetationWind (const VegetationWindState &state, const VegetationWindProfile &profile, double seconds)
 Pack a wind snapshot into the grass shader's final 14 float slots.
 
Result< void > eve::graphics::initializeVegetationWind (VegetationWindState &state, glm::vec3 forward, float strength)
 Apply Pcg WindManager.InstantWindApply semantics without smoothing.
 
Result< void > eve::graphics::advanceVegetationWind (VegetationWindState &state, glm::vec3 forward, float strength, float dt)
 Advance source WindManager smoothing and phase using explicit nonnegative dt. Direction Y follows -max(forward.y, length(forward.xz)*0.5); strength clamps to [0,1.2]. Lerp factor clamps dt*0.25; phase uses the smoothed strength and subtracts 100 once if >100.
 
Result< glm::vec3 > eve::graphics::evaluateVegetationWind (const VegetationWindInput &input, const VegetationWindState &state)
 Evaluate the source main/branch/leaf deformation for one vertex without mutation. Requires finite inputs, invertible object transform, positive dimensions/distance, unit sine inputs and finite wind globals. Source branch/leaf compile switches are explicit flags. Resolves the source root 0/0 volume normalization as zero displacement; other nonrepresentable results fail.