summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2025-08-17 13:11:54 -0700
committerVito Caputo <vcaputo@pengaru.com>2025-08-17 13:11:54 -0700
commit4f38dd5e0dbc42fd49de3e1786368cb8066da4a0 (patch)
tree6819669e90c9fab340c73504bb4a2855a1e2eabb /src
parent7e3174c71f723046171b8b186f38c51fee63a338 (diff)
modules/flow: lerp .5 instead of .75 in ff_populatorHEADmaster
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.c2
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);
}
}
© All Rights Reserved