diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-10 22:48:50 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-10 22:48:50 +0200 |
| commit | 55282ddc106cb0b2fd8750e710fbd49efab5f56a (patch) | |
| tree | 779c65b521798db5ff8e0321b71ae6f3d65d7721 /scene/2d/gpu_particles_2d.h | |
| parent | c5291a3555343e8aa5aefa1c7e17f2ad05ee1fc9 (diff) | |
| parent | c228fe1a0d7cf9dc65404f63cddbc0dd85959f2e (diff) | |
| download | redot-engine-55282ddc106cb0b2fd8750e710fbd49efab5f56a.tar.gz | |
Merge pull request #79527 from QbieShay/qbe/particles-rework
Particle internal refactor and additions for more artistic control
Diffstat (limited to 'scene/2d/gpu_particles_2d.h')
| -rw-r--r-- | scene/2d/gpu_particles_2d.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/2d/gpu_particles_2d.h b/scene/2d/gpu_particles_2d.h index 3a342e2c22..40831cd30e 100644 --- a/scene/2d/gpu_particles_2d.h +++ b/scene/2d/gpu_particles_2d.h @@ -52,6 +52,7 @@ private: bool signal_canceled = false; bool one_shot = false; int amount = 0; + float amount_ratio = 1.0; double lifetime = 0.0; double pre_process_time = 0.0; real_t explosiveness_ratio = 0.0; @@ -62,6 +63,8 @@ private: int fixed_fps = 0; bool fractional_delta = false; bool interpolate = true; + float interp_to_end_factor = 0; + Vector2 previous_position; #ifdef TOOLS_ENABLED bool show_visibility_rect = false; #endif @@ -114,6 +117,7 @@ public: void set_trail_lifetime(double p_seconds); void set_trail_sections(int p_sections); void set_trail_section_subdivisions(int p_subdivisions); + void set_interp_to_end(float p_interp); #ifdef TOOLS_ENABLED void set_show_visibility_rect(bool p_show_visibility_rect); @@ -136,6 +140,7 @@ public: double get_trail_lifetime() const; int get_trail_sections() const; int get_trail_section_subdivisions() const; + float get_interp_to_end() const; void set_fixed_fps(int p_count); int get_fixed_fps() const; @@ -152,6 +157,9 @@ public: void set_texture(const Ref<Texture2D> &p_texture); Ref<Texture2D> get_texture() const; + void set_amount_ratio(float p_ratio); + float get_amount_ratio() const; + PackedStringArray get_configuration_warnings() const override; void set_sub_emitter(const NodePath &p_path); |
