From 8bd46a481ac1e9ea434d447dc10335ae30b2d72a Mon Sep 17 00:00:00 2001 From: Max Richter Date: Thu, 2 May 2024 20:57:12 +0200 Subject: [PATCH] fix: bruhhhh --- nodes/max/plantarium/noise/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/max/plantarium/noise/src/lib.rs b/nodes/max/plantarium/noise/src/lib.rs index bc89c18..b405c83 100644 --- a/nodes/max/plantarium/noise/src/lib.rs +++ b/nodes/max/plantarium/noise/src/lib.rs @@ -1,6 +1,6 @@ use nodarium_macros::include_definition_file; use nodarium_utils::{ - concat_args, evaluate_float, evaluate_int, evaluate_vec3, geometry::wrap_path_mut, + concat_args, evaluate_float, evaluate_int, evaluate_vec3, geometry::wrap_path_mut, log, reset_call_count, set_panic_hook, split_args, }; use noise::{HybridMulti, MultiFractal, NoiseFn, OpenSimplex}; @@ -73,7 +73,7 @@ pub fn execute(input: &[i32]) -> Vec { let px = j as f64 + a * length * scale; let py = a * scale as f64; - path.points[i * 4] = noise_x.get([px, py]) as f32 + path.points[i * 4] += noise_x.get([px, py]) as f32 * directional_strength[0] * strength * lerp(1.0, a as f32, fix_bottom);