Skip to content

Commit

Permalink
Merge pull request #80984 from MarcusElg/particleoffsetstutter
Browse files Browse the repository at this point in the history
Fix GPUParticle2D offset stutter
  • Loading branch information
akien-mga committed Aug 28, 2023
2 parents 359bb38 + 936fd8d commit 2f82687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/particle_process_material.cpp
Expand Up @@ -762,7 +762,7 @@ void ParticleProcessMaterial::_update_shader() {
code += " float base_angle = (tex_angle) * mix(initial_angle_min, initial_angle_max, angle_rand);\n";
code += " base_angle += CUSTOM.y * LIFETIME * (tex_angular_velocity) * mix(angular_velocity_min,angular_velocity_max, rand_from_seed(alt_seed));\n";
code += " CUSTOM.x = base_angle * degree_to_rad;\n"; // angle
code += " CUSTOM.z = (tex_anim_offset) * mix(anim_offset_min, anim_offset_max, rand_from_seed(alt_seed)) + tv * tex_anim_speed * mix(anim_speed_min, anim_speed_max, rand_from_seed(alt_seed));\n"; // angle
code += " CUSTOM.z = (tex_anim_offset) * mix(anim_offset_min, anim_offset_max, anim_offset_rand) + tv * tex_anim_speed * mix(anim_speed_min, anim_speed_max, rand_from_seed(alt_seed));\n"; // angle

// apply color
// apply hue rotation
Expand Down

0 comments on commit 2f82687

Please sign in to comment.