add water wave speed setting

This commit is contained in:
Xonk
2024-03-02 18:03:05 -05:00
parent a316310641
commit 0c184e8e31
3 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,7 @@ float waterCaustics(vec3 worldPos, vec3 sunVec) {
vec2 pos = projectedPos.xz;
float heightSum = 0.0;
float movement = frameTimeCounter*0.02;
float movement = frameTimeCounter*0.035 * WATER_WAVE_SPEED;
// movement = 0.0;
float radiance = 2.39996;
@ -32,7 +32,7 @@ float getWaterHeightmap(vec2 posxz) {
vec2 pos = posxz;
float heightSum = 0.0;
float movement = frameTimeCounter*0.02;
float movement = frameTimeCounter*0.035 * WATER_WAVE_SPEED;
// movement = 0.0;
float radiance = 2.39996;