summaryrefslogtreecommitdiff
path: root/themes/Snowflake.h
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-01-17 08:46:49 -0500
committermattkae <mattkae@protonmail.com>2022-01-17 08:46:49 -0500
commitc3c2451232bfeeaa0d5fc200e4a5a27e13c258d2 (patch)
tree2d0e8cc3f5197d1afc5472fab1f826e48ce126b2 /themes/Snowflake.h
parent1d47e3aa120539e053ffa41293f3f756b9d07844 (diff)
Generating slightly prettier snowflakes
Diffstat (limited to 'themes/Snowflake.h')
-rw-r--r--themes/Snowflake.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/themes/Snowflake.h b/themes/Snowflake.h
index 08f1c0c..d44851b 100644
--- a/themes/Snowflake.h
+++ b/themes/Snowflake.h
@@ -14,6 +14,7 @@ struct SnowflakeLoadParameters {
float32 flakeSizeDeviation = 1.f;
Vector4 snowColor = { 0.8, 0.8, 0.8, 1.0 };
float32 spawnIntervalSeconds = 0.3;
+ float32 windIntervalSeconds = 1.5;
};
struct SnowflakeUpdateData {
@@ -31,12 +32,14 @@ struct SnowflakeParticleRenderer {
float32 xMax = 0;
float32 yMax = 0;
float32 spawnIntervalSeconds = 0.3;
+ float32 windIntervalSeconds = 1.5;
int32 startIndex = 0;
int32 endIndex = 0;
int32 numSnowflakes = 0;
- Vector3 windSpeed = { 0, 0, 0 };
+ Vector2 windSpeed;
SnowflakeUpdateData* updateData;
- float32 timeUntilNextSpawnSeconds = 0;;
+ float32 timeUntilNextSpawnSeconds = 0;
+ float32 timeUntilNextWindSeconds = 0;
uint32 vao;
uint32 vbo;