Merge pull request #84189 from akien-mga/opengl-gpuparticles-initialize-interp_to_end

OpenGL: Fix uninitialized memory usage for GPUPartciles `interp_to_end`
This commit is contained in:
Rémi Verschelde 2023-10-30 16:27:26 +01:00
commit 8c7e20d97e
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;