diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2025-08-17 13:11:54 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2025-08-17 13:11:54 -0700 |
commit | 4f38dd5e0dbc42fd49de3e1786368cb8066da4a0 (patch) | |
tree | 6819669e90c9fab340c73504bb4a2855a1e2eabb /src | |
parent | 7e3174c71f723046171b8b186f38c51fee63a338 (diff) |
This produces more aesthetically pleasing transitions, .75 is
often a bit jarring. This way the ff is more just meandering
between the randomized values.
It may make sense to have this be a runtime setting.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/flow/flow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/flow/flow.c b/src/modules/flow/flow.c index 4ef42ed..d28f9f3 100644 --- a/src/modules/flow/flow.c +++ b/src/modules/flow/flow.c @@ -94,7 +94,7 @@ static void flow_ff_populator(void *context, unsigned size, const ff_data_t *oth v3f_t c = v3f_rand(seedp, 0.f, 1.0f); size_t idx = x * size * size + y * size + z; - field[idx].direction = v3f_lerp(&other[idx].direction, &v, .75f); + field[idx].direction = v3f_lerp(&other[idx].direction, &v, .50f); field[idx].color = v3f_lerp(&other[idx].color, &c, .75f); } } |