From c3c2451232bfeeaa0d5fc200e4a5a27e13c258d2 Mon Sep 17 00:00:00 2001 From: mattkae Date: Mon, 17 Jan 2022 08:46:49 -0500 Subject: Generating slightly prettier snowflakes --- themes/Snowflake.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'themes/Snowflake.h') 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; -- cgit v1.2.1