summaryrefslogtreecommitdiff
path: root/themes/src/Snowflake.h
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-12-23 16:37:31 -0500
committermattkae <mattkae@protonmail.com>2022-12-23 16:37:31 -0500
commit66e768c89bf91fb05a93ecd2519898eb70b7b8d4 (patch)
tree06b99649312eb30a7953a716d89c61164f9823e1 /themes/src/Snowflake.h
parent5667776d9c80f2f2af856da01a14ac20bdf5a3e0 (diff)
Gently rotating falkes
Diffstat (limited to 'themes/src/Snowflake.h')
-rw-r--r--themes/src/Snowflake.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/themes/src/Snowflake.h b/themes/src/Snowflake.h
index c6323d6..02673c1 100644
--- a/themes/src/Snowflake.h
+++ b/themes/src/Snowflake.h
@@ -6,11 +6,9 @@ struct Renderer2d;
struct Vertex2D;
struct SnowflakeLoadParameters {
- i32 numSnowflakes = 1000;
+ i32 numSnowflakes = 500;
f32 rateOfSnowfall = 0.1f;
Vector2 flakeV0 = { 0, 1 };
- f32 flakeSize = 5.f;
- f32 flakeSizeDeviation = 1.f;
Vector4 snowColor = { 0.8, 0.8, 0.8, 1.0 };
f32 windIntervalSeconds = 1.5;
};
@@ -19,8 +17,8 @@ struct SnowflakeUpdateData {
Vector2 v0;
Vector2 velocity;
Vector2 position;
- f32 rotation;
- bool onGround = false;
+ f32 rotateVelocity = 0.f;
+ f32 rotation = 0;
i32 vtxIdx = 0;
i32 numVertices = 0;