载入中...
搜索中...
未找到
Waterfall.cpp
浏览该文件的文档.
Definition Graphics.h:134
virtual std::string getBackendName() const =0
Renderer backend id used by sibling modules (e.g. Gpgpu).
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)....
virtual Shader * newMeshShaderFromWgsl(const std::string &vertWgsl, const std::string &fragWgsl)=0
Create a Mesh3D custom shader from WGSL source (WebGPU backend). The WGSL must declare the engine's F...
static void removeCaptureExtraDrawer(uint64_t token)
Unregister an offscreen capture contributor.
Definition RenderSystem3D.cpp:605
static uint64_t addCaptureExtraDrawer(uint32_t reflectionCaptureMask, CaptureExtraDrawer drawer)
Register custom forward geometry for offscreen captures.
Definition RenderSystem3D.cpp:598
void sendFloat(const std::string &name, float x)
Definition Shader.cpp:107
void sendVec3(const std::string &name, float x, float y, float z)
Definition Shader.cpp:114
int declareFloat(const std::string &name)
Reserve sequential float slots in the push-constant block. Returns start index.
Definition Shader.cpp:55
void setReflectionIntensity(float intensity)
Sets the reflection intensity.
Definition Waterfall.cpp:146
static int paramCount()
Names of the push-constant parameters (for UI / inspection).
Definition Waterfall.cpp:55
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:75
void createCurvedSheet(float width, float height, int segX, int segY, float curveDepth, float lipOverhang)
Build a shaped water curtain with a convex cross-section and projecting lip.
Definition Waterfall.cpp:79
void setStreakCount(int count)
How many layered falling streaks are drawn.
Definition Waterfall.cpp:136
void draw()
Draw the waterfall sheet (uses default mesh3d camera / lighting state).
Definition Waterfall.cpp:164
void setTurbulence(float t)
Amount of turbulence / white-water streak in the body.
Definition Waterfall.cpp:135
void setStreakScale(float scale)
Horizontal stretch of the falling streaks (1 = circular, >1 elongated).
Definition Waterfall.cpp:137
void setTopFoam(float v)
Relative height (0..1) of the top foam lip and bottom splash bands.
Definition Waterfall.cpp:138
void setFlowSpeed(float speed)
Fall speed of the water (scales the downward scroll).
Definition Waterfall.cpp:134
constexpr const char * kWaterfallFragWgsl
Waterfall fragment shader WGSL source. @ownership Borrowed immutable string literal; callers must not...
Definition WaterfallWgsl.h:10
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Shader * newWaterfallShader(Graphics *gfx)
Create the embedded waterfall fragment shader (owned by Graphics).
Definition Waterfall.cpp:37