summaryrefslogtreecommitdiff
path: root/scene/resources/visual_shader_particle_nodes.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-11-05 12:01:36 +0100
committerGitHub <noreply@github.com>2021-11-05 12:01:36 +0100
commit56cfebbe98ef18d91b891dbbde96081343d5b4cc (patch)
tree5c0353d026b25f7a8dd749bfad84acc2f8883e6e /scene/resources/visual_shader_particle_nodes.h
parentbf10956b7fba72111adaf5e3df5545854fcb3dc4 (diff)
parentdcdf59cd7396c0f5c47af78639bc60acf96273fa (diff)
Merge pull request #54599 from Chaosus/vs_particles_2d_emitters
Diffstat (limited to 'scene/resources/visual_shader_particle_nodes.h')
-rw-r--r--scene/resources/visual_shader_particle_nodes.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/scene/resources/visual_shader_particle_nodes.h b/scene/resources/visual_shader_particle_nodes.h
index b8bc7992cc..0b1fa277de 100644
--- a/scene/resources/visual_shader_particle_nodes.h
+++ b/scene/resources/visual_shader_particle_nodes.h
@@ -38,12 +38,23 @@
class VisualShaderNodeParticleEmitter : public VisualShaderNode {
GDCLASS(VisualShaderNodeParticleEmitter, VisualShaderNode);
+protected:
+ bool mode_2d = false;
+ static void _bind_methods();
+
public:
virtual int get_output_port_count() const override;
virtual PortType get_output_port_type(int p_port) const override;
virtual String get_output_port_name(int p_port) const override;
virtual bool has_output_port_preview(int p_port) const override;
+ void set_mode_2d(bool p_enabled);
+ bool is_mode_2d() const;
+
+ Vector<StringName> get_editable_properties() const override;
+ Map<StringName, String> get_editable_properties_names() const override;
+ bool is_show_prop_names() const override;
+
VisualShaderNodeParticleEmitter();
};