44 void createSheet(
float width,
float height,
int segX,
int segY);
55 void createCurvedSheet(
float width,
float height,
int segX,
int segY,
float curveDepth,
59 void update(
float dt);
61 void setTime(
float seconds);
67 void setFlowSpeed(
float speed);
72 void setTurbulence(
float t);
77 void setStreakCount(
int count);
82 void setStreakScale(
float scale);
87 void setTopFoam(
float v);
91 void setBottomFoam(
float v);
95 void setFoamAmount(
float v);
100 void setWaterColor(
float r,
float g,
float b);
102 void setReflectionIntensity(
float intensity);
106 void setSunIntensity(
float intensity);
131 static int paramCount();
133 static std::string paramName(
int index);
137 Shader *shader_ =
nullptr;
138 Mesh *mesh_ =
nullptr;
141 float flowSpeed_ = 1.4f;
142 float turbulence_ = 0.6f;
143 int streakCount_ = 4;
144 float streakScale_ = 5.f;
145 float topFoam_ = 0.06f;
146 float bottomFoam_ = 0.12f;
147 float foamAmount_ = 0.85f;
148 float waterColor_[3] = {0.05f, 0.22f, 0.30f};
149 float reflectionIntensity_ = 0.55f;
150 float sunIntensity_ = 0.8f;
151 uint64_t captureDrawerToken_ = 0;
152 uint32_t reflectionCaptureMask_ = 0xffffffffu;
153 bool reflectionCaptureEnabled_ =
true;
#define EVENGINE_API_BACKENDS
std::array< float, 3 > scale
GPU mesh handle (+ optional CPU morph targets).
Flowing waterfall (falling water sheet) rendered on a vertical plane.
float getStreakScale() const
Returns the streak scale.
bool getReflectionCaptureEnabled() const
Return whether this waterfall is included in reflection-probe captures.
Shader * getShader() const
Returns the shader.
float getSunIntensity() const
Returns the sun intensity.
int getStreakCount() const
Returns the streak count.
float getFoamAmount() const
Returns the foam amount.
float getTime() const
Returns the time.
Mesh * getMesh() const
Returns the mesh.
float getTurbulence() const
Returns the turbulence.
float getBottomFoam() const
Returns the bottom foam.
float getReflectionIntensity() const
Returns the reflection intensity.
Waterfall(const Waterfall &)=delete
float getTopFoam() const
Returns the top foam.
uint32_t getReflectionCaptureMask() const
Return the reflection-capture visibility layer mask.
void setReflectionCaptureEnabled(bool enabled)
Enable or disable inclusion in reflection-probe captures.
float getFlowSpeed() const
Returns the flow speed.
void setReflectionCaptureMask(uint32_t mask)
Set the reflection-capture visibility layer mask.
Waterfall & operator=(const Waterfall &)=delete
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Shader * newWaterfallShader(Graphics *gfx)
Create the embedded waterfall fragment shader (owned by Graphics).