From 4f38dd5e0dbc42fd49de3e1786368cb8066da4a0 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 17 Aug 2025 13:11:54 -0700 Subject: modules/flow: lerp .5 instead of .75 in ff_populator 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. --- src/modules/flow/flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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); } } -- cgit v1.2.3