载入中...
搜索中...
未找到
TreeWind.h
浏览该文件的文档.
1#pragma once
2#include <glm/vec2.hpp>
3#include "common/Result.h"
4
5namespace eve::graphics {
6class Graphics;
7class Shader;
8struct VegetationWindProfile;
9struct VegetationWindState;
10
14 glm::vec2 widthHeight{1, 1};
16 float bendFactor = 1;
17};
18
26
37 const VegetationWindProfile& vegetation,
38 const TreeWindProfile& tree, double seconds);
39} // namespace eve::graphics
#define EVENGINE_API_BACKENDS
Definition Export.h:108
Shader * shader
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Custom GPU program.
Definition Shader.h:39
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Shader * createTreeWindShader(Graphics *graphics)
Create a backend-native tree Mesh3D shader using the engine PBR fragment stage.
Result< void > applyTreeWind(Shader &shader, const VegetationWindState &state, const VegetationWindProfile &vegetation, const TreeWindProfile &tree, double seconds)
Atomically publish one validated tree wind snapshot to CPU-side shader parameters.
Definition TreeWind.cpp:13
Caller-owned tree prototype wind geometry matching Pcg ResourceProtoTree inputs.
Definition TreeWind.h:12
glm::vec2 widthHeight
Object-space crown width and source prototype height; both must be positive.
Definition TreeWind.h:14
float bendFactor
Pcg tree prototype bend factor. Zero disables deformation.
Definition TreeWind.h:16
Caller-owned material wind controls; billboard suppresses source branch and leaf motion....
Caller-owned wind globals; no hidden clock, singleton or retained scene link.