Redesign the graph editor for visual shaders
This commit is contained in:
@ -57,6 +57,8 @@ public:
|
||||
virtual HashMap<StringName, String> get_editable_properties_names() const override;
|
||||
bool is_show_prop_names() const override;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleEmitter();
|
||||
};
|
||||
|
||||
@ -73,6 +75,8 @@ public:
|
||||
virtual String generate_global_per_node(Shader::Mode p_mode, int p_id) const override;
|
||||
virtual String generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview = false) const override;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleSphereEmitter();
|
||||
};
|
||||
|
||||
@ -90,6 +94,8 @@ public:
|
||||
virtual String generate_global_per_node(Shader::Mode p_mode, int p_id) const override;
|
||||
virtual String generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview = false) const override;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleBoxEmitter();
|
||||
};
|
||||
|
||||
@ -106,6 +112,8 @@ public:
|
||||
virtual String generate_global_per_node(Shader::Mode p_mode, int p_id) const override;
|
||||
virtual String generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview = false) const override;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleRingEmitter();
|
||||
};
|
||||
|
||||
@ -158,6 +166,8 @@ public:
|
||||
HashMap<StringName, String> get_editable_properties_names() const override;
|
||||
Vector<VisualShader::DefaultTextureParam> get_default_texture_parameters(VisualShader::Type p_type, int p_id) const override;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleMeshEmitter();
|
||||
};
|
||||
|
||||
@ -187,6 +197,8 @@ public:
|
||||
bool is_degrees_mode() const;
|
||||
Vector<StringName> get_editable_properties() const override;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleMultiplyByAxisAngle();
|
||||
};
|
||||
|
||||
@ -207,6 +219,8 @@ public:
|
||||
|
||||
virtual String generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview = false) const override;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleConeVelocity();
|
||||
};
|
||||
|
||||
@ -248,6 +262,8 @@ public:
|
||||
void set_op_type(OpType p_type);
|
||||
OpType get_op_type() const;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleRandomness();
|
||||
};
|
||||
|
||||
@ -290,6 +306,8 @@ public:
|
||||
void set_mode(Mode p_mode);
|
||||
Mode get_mode() const;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleAccelerator();
|
||||
};
|
||||
|
||||
@ -352,6 +370,8 @@ public:
|
||||
virtual bool is_input_port_default(int p_port, Shader::Mode p_mode) const override;
|
||||
virtual String generate_code(Shader::Mode p_mode, VisualShader::Type p_type, int p_id, const String *p_input_vars, const String *p_output_vars, bool p_for_preview = false) const override;
|
||||
|
||||
virtual Category get_category() const override { return CATEGORY_PARTICLE; }
|
||||
|
||||
VisualShaderNodeParticleEmit();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user