summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2025-08-17 13:11:54 -0700
committerVito Caputo <vcaputo@pengaru.com>2025-08-19 23:17:14 -0700
commitb2076398dd87c20501740155b3a3f670bbf10d15 (patch)
tree6819669e90c9fab340c73504bb4a2855a1e2eabb
parente1732a3e0cc926c994adc7e5e9df8a5e145a3527 (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.
-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