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:
commit
8c7e20d97e
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -233,7 +233,7 @@ private:
|
|||
|
||||
Transform3D emission_transform;
|
||||
Vector3 emitter_velocity;
|
||||
float interp_to_end;
|
||||
float interp_to_end = 0.0;
|
||||
|
||||
HashSet<RID> collisions;
|
||||
|
||||
|
|
Loading…
Reference in a new issue