Skip to content

Commit

Permalink
Merge pull request #84006 from AThousandShips/particle_fix
Browse files Browse the repository at this point in the history
[Particles] Fix invalid parameter ranges
  • Loading branch information
akien-mga committed Oct 27, 2023
2 parents 924d861 + 5688bb1 commit 090f616
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scene/resources/particle_process_material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 090f616

Please sign in to comment.