OpenGL: Fix uninitialized memory usage for GPUPartciles interp_to_end

Fixes #84072.
This commit is contained in:
Rémi Verschelde 2023-10-30 15:06:12 +01:00
parent 5dc10b5aa5
commit acbc341a58
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 3 additions and 3 deletions

View file

@ -76,7 +76,7 @@
</member>
<member name="interp_to_end" type="float" setter="set_interp_to_end" getter="get_interp_to_end" default="0.0">
Causes all the particles in this node to interpolate towards the end of their lifetime.
[b]Note[/b]: This only works when used with a [ParticleProcessMaterial]. It needs to be manually implemented for custom process shaders.
[b]Note:[/b] This only works when used with a [ParticleProcessMaterial]. It needs to be manually implemented for custom process shaders.
</member>
<member name="interpolate" type="bool" setter="set_interpolate" getter="get_interpolate" default="true">
Enables particle interpolation, which makes the particle movement smoother when their [member fixed_fps] is lower than the screen refresh rate.

View file

@ -107,7 +107,7 @@
</member>
<member name="interp_to_end" type="float" setter="set_interp_to_end" getter="get_interp_to_end" default="0.0">
Causes all the particles in this node to interpolate towards the end of their lifetime.
[b]Note[/b]: This only works when used with a [ParticleProcessMaterial]. It needs to be manually implemented for custom process shaders.
[b]Note:[/b] This only works when used with a [ParticleProcessMaterial]. It needs to be manually implemented for custom process shaders.
</member>
<member name="interpolate" type="bool" setter="set_interpolate" getter="get_interpolate" default="true">
Enables particle interpolation, which makes the particle movement smoother when their [member fixed_fps] is lower than the screen refresh rate.

View file

@ -233,7 +233,7 @@ private:
Transform3D emission_transform;
Vector3 emitter_velocity;
float interp_to_end;
float interp_to_end = 0.0;
HashSet<RID> collisions;