From 5688bb1888e9037fde1067cc8c25e743ca629b72 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Thu, 26 Oct 2023 16:08:13 +0200 Subject: [PATCH] [Particles] Fix invalid parameter ranges --- scene/resources/particle_process_material.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scene/resources/particle_process_material.cpp b/scene/resources/particle_process_material.cpp index 6075db4ffb82..7e42cf3d633e 100644 --- a/scene/resources/particle_process_material.cpp +++ b/scene/resources/particle_process_material.cpp @@ -531,10 +531,10 @@ void ParticleProcessMaterial::_update_shader() { code += "\n"; code += "void calculate_initial_physical_params(inout PhysicalParameters params, inout uint alt_seed){\n"; - code += " params.linear_accel = mix(linear_accel_min, linear_accel_min ,rand_from_seed(alt_seed));\n"; - code += " params.radial_accel = mix(radial_accel_min, radial_accel_min,rand_from_seed(alt_seed));\n"; - code += " params.tangent_accel = mix(tangent_accel_min, tangent_accel_max,rand_from_seed(alt_seed));\n"; - code += " params.damping = mix(damping_min, damping_max,rand_from_seed(alt_seed));\n"; + code += " params.linear_accel = mix(linear_accel_min, linear_accel_max, rand_from_seed(alt_seed));\n"; + code += " params.radial_accel = mix(radial_accel_min, radial_accel_max, rand_from_seed(alt_seed));\n"; + code += " params.tangent_accel = mix(tangent_accel_min, tangent_accel_max, rand_from_seed(alt_seed));\n"; + code += " params.damping = mix(damping_min, damping_max, rand_from_seed(alt_seed));\n"; code += "}\n"; code += "\n"; code += "void calculate_initial_dynamics_params(inout DynamicsParameters params,inout uint alt_seed){\n";