diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-10 07:41:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-10 07:41:46 +0200 |
| commit | 536950f9f35f48633c6c2c57ae2473bb906221d2 (patch) | |
| tree | 659cb6a83ab8f4d76ae3b11486987c51825a849e /scene/2d/cpu_particles_2d.cpp | |
| parent | f3ddc14d3829ed09d6eab81811bcfb1314626ddf (diff) | |
| parent | 430ad75963a0e6837ef460e78fb99565714b4418 (diff) | |
Merge pull request #21922 from aaronfranke/double
Some work on double-precision support
Diffstat (limited to 'scene/2d/cpu_particles_2d.cpp')
| -rw-r--r-- | scene/2d/cpu_particles_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/cpu_particles_2d.cpp b/scene/2d/cpu_particles_2d.cpp index 9bff3a99cc..ced1c5cb81 100644 --- a/scene/2d/cpu_particles_2d.cpp +++ b/scene/2d/cpu_particles_2d.cpp @@ -874,7 +874,7 @@ void CPUParticles2D::_particles_process(double p_delta) { tex_hue_variation = curve_parameters[PARAM_HUE_VARIATION]->interpolate(tv); } - real_t hue_rot_angle = (parameters[PARAM_HUE_VARIATION] + tex_hue_variation) * Math_TAU * Math::lerp(1.0f, p.hue_rot_rand * 2.0f - 1.0f, randomness[PARAM_HUE_VARIATION]); + real_t hue_rot_angle = (parameters[PARAM_HUE_VARIATION] + tex_hue_variation) * Math_TAU * Math::lerp(1, p.hue_rot_rand * 2.0f - 1.0f, randomness[PARAM_HUE_VARIATION]); real_t hue_rot_c = Math::cos(hue_rot_angle); real_t hue_rot_s = Math::sin(hue_rot_angle); |