From b3e3b7548b85d65e17345c3774549a9feacb54c8 Mon Sep 17 00:00:00 2001 From: Tim Hutton Date: Sun, 11 Feb 2024 21:45:36 +0000 Subject: [PATCH] Update erosion.vti: Added comments, parameter to control the noise. --- Patterns/Reusser2024/erosion.vti | 33 ++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/Patterns/Reusser2024/erosion.vti b/Patterns/Reusser2024/erosion.vti index 4c8c72eb..e54024b0 100644 --- a/Patterns/Reusser2024/erosion.vti +++ b/Patterns/Reusser2024/erosion.vti @@ -3,23 +3,27 @@ - A model of hydraulic erosion by Ricky Reusser + A model of hydraulic erosion by Ricky Reusser. https://mathstodon.xyz/@rreusser/111913990129998428 + + Parameter h controls how much noise to add to the gradient. 0.4 1.0 + 1.5 0.02 1.0 - 1.0 + 0.5 - delta_a = f * laplacian_a - g * pow(sqrt(gradient_mag_squared_a), 1.5) * b; + delta_a = f * laplacian_a - g * pow(sqrt(gradient_mag_squared_a), e) * (1.0f + h * (b - 1.0f)); + @@ -27,33 +31,34 @@ - - - - + + + - - + + - - - + + + + - + + - +