mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #112514 from QbieShay/qbe/fix-109183
Fix CPUParticle3D not randomizing
This commit is contained in:
commit
ee66b34160
1 changed files with 1 additions and 1 deletions
|
|
@ -828,7 +828,7 @@ void CPUParticles3D::_particles_process(double p_delta) {
|
|||
tex_anim_offset = curve_parameters[PARAM_ANGLE]->sample(tv);
|
||||
}
|
||||
|
||||
p.seed = seed + uint32_t(1) + i + cycle;
|
||||
p.seed = seed + uint32_t(1) + i + cycle * pcount;
|
||||
rng->set_seed(p.seed);
|
||||
p.angle_rand = rng->randf();
|
||||
p.scale_rand = rng->randf();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue