载入中...
搜索中...
未找到
Waterfall.cpp
浏览该文件的文档.
Definition Graphics.h:56
virtual Shader * newMeshShaderFromSpv(const std::vector< uint32_t > &vertSpv, const std::vector< uint32_t > &fragSpv)=0
Create a Mesh3D custom shader (MeshVertex + Frame UBO + albedo). Empty vert → default mesh3d....
virtual void drawMeshShader(Mesh *mesh, const glm::mat4 &model, Texture *texture, const Color &tint, Shader *shader)=0
Draw mesh with an explicit Mesh3D Shader (nullptr = default PBR pipeline).
virtual Mesh * newMeshFromArrays(const float *posXYZ, const float *nrmXYZ, const float *uvST, int vertexCount, const uint32_t *indices, int indexCount)=0
Upload a triangle mesh from packed CPU arrays. Owned by Graphics. posXYZ required (vertexCount*3)....
void sendFloat(const std::string &name, float x)
Definition Shader.cpp:82
void sendVec3(const std::string &name, float x, float y, float z)
Definition Shader.cpp:89
int declareFloat(const std::string &name)
Reserve sequential float slots in the push-constant block. Returns start index.
Definition Shader.cpp:30
void setSunIntensity(float intensity)
Definition Waterfall.cpp:114
void setReflectionIntensity(float intensity)
Definition Waterfall.cpp:113
static int paramCount()
Names of the push-constant parameters (for UI / inspection).
Definition Waterfall.cpp:44
void createSheet(float width, float height, int segX, int segY)
Build a vertical XY plane (facing +Z, Y-up world) sized w×h, UVs [0,1]².
Definition Waterfall.cpp:56
void setStreakCount(int count)
How many layered falling streaks are drawn.
Definition Waterfall.cpp:103
void draw()
Draw the waterfall sheet (uses default mesh3d camera / lighting state).
Definition Waterfall.cpp:131
void setWaterColor(float r, float g, float b)
Definition Waterfall.cpp:108
void setTurbulence(float t)
Amount of turbulence / white-water streak in the body.
Definition Waterfall.cpp:102
void setStreakScale(float scale)
Horizontal stretch of the falling streaks (1 = circular, >1 elongated).
Definition Waterfall.cpp:104
void setTopFoam(float v)
Relative height (0..1) of the top foam lip and bottom splash bands.
Definition Waterfall.cpp:105
void setFlowSpeed(float speed)
Fall speed of the water (scales the downward scroll).
Definition Waterfall.cpp:101
static std::string paramName(int index)
Definition Waterfall.cpp:46
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition AnimTrail.h:6
Shader * newWaterfallShader(Graphics *gfx)
Create the embedded waterfall fragment shader (owned by Graphics).
Definition Waterfall.cpp:31