From 66e768c89bf91fb05a93ecd2519898eb70b7b8d4 Mon Sep 17 00:00:00 2001 From: mattkae Date: Fri, 23 Dec 2022 16:37:31 -0500 Subject: Gently rotating falkes --- themes/src/Snowflake.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'themes/src/Snowflake.h') 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; -- cgit v1.2.1