From 8649ab831d706701530dbdb66e79ddc6e4d3eac2 Mon Sep 17 00:00:00 2001 From: Jordan Peck Date: Wed, 26 Jul 2023 14:07:04 +0100 Subject: [PATCH] FastNoiseLite Fix cellular jitter using incorrect default value Default value for cellular jitter should be 1.0, using 0.45 will make the cellular noise look bad --- modules/noise/doc_classes/FastNoiseLite.xml | 2 +- modules/noise/fastnoise_lite.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/noise/doc_classes/FastNoiseLite.xml b/modules/noise/doc_classes/FastNoiseLite.xml index 4c6cdfbf128e..36bb54dd32a5 100644 --- a/modules/noise/doc_classes/FastNoiseLite.xml +++ b/modules/noise/doc_classes/FastNoiseLite.xml @@ -13,7 +13,7 @@ Determines how the distance to the nearest/second-nearest point is computed. See [enum CellularDistanceFunction] for options. - + Maximum distance a point can move off of its grid position. Set to [code]0[/code] for an even grid. diff --git a/modules/noise/fastnoise_lite.h b/modules/noise/fastnoise_lite.h index c63f7d7d2914..06a2b39abe3c 100644 --- a/modules/noise/fastnoise_lite.h +++ b/modules/noise/fastnoise_lite.h @@ -116,7 +116,7 @@ private: // Cellular specific. CellularDistanceFunction cellular_distance_function = DISTANCE_EUCLIDEAN; CellularReturnType cellular_return_type = RETURN_DISTANCE; - real_t cellular_jitter = 0.45; + real_t cellular_jitter = 1.0; // Domain warp specific. bool domain_warp_enabled = false;