mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 02:52:28 -05:00
Fix some missing categories in visual shader nodes
This commit is contained in:
parent
39f90600bc
commit
e5d2b6d50f
3 changed files with 32 additions and 10 deletions
|
@ -514,6 +514,8 @@ public:
|
||||||
virtual Vector<StringName> get_editable_properties() const override;
|
virtual Vector<StringName> get_editable_properties() const override;
|
||||||
virtual bool is_use_prop_slots() const override;
|
virtual bool is_use_prop_slots() const override;
|
||||||
|
|
||||||
|
virtual Category get_category() const override { return CATEGORY_TEXTURES; }
|
||||||
|
|
||||||
VisualShaderNodeCurveXYZTexture();
|
VisualShaderNodeCurveXYZTexture();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -657,6 +659,8 @@ public:
|
||||||
virtual Vector<StringName> get_editable_properties() const override;
|
virtual Vector<StringName> get_editable_properties() const override;
|
||||||
virtual String get_warning(Shader::Mode p_mode, VisualShader::Type p_type) const override;
|
virtual String get_warning(Shader::Mode p_mode, VisualShader::Type p_type) const override;
|
||||||
|
|
||||||
|
virtual Category get_category() const override { return CATEGORY_TEXTURES; }
|
||||||
|
|
||||||
VisualShaderNodeCubemap();
|
VisualShaderNodeCubemap();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -832,6 +836,8 @@ public:
|
||||||
|
|
||||||
virtual Vector<StringName> get_editable_properties() const override;
|
virtual Vector<StringName> get_editable_properties() const override;
|
||||||
|
|
||||||
|
virtual Category get_category() const override { return CATEGORY_SCALAR; }
|
||||||
|
|
||||||
VisualShaderNodeIntOp();
|
VisualShaderNodeIntOp();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -880,6 +886,8 @@ public:
|
||||||
|
|
||||||
virtual Vector<StringName> get_editable_properties() const override;
|
virtual Vector<StringName> get_editable_properties() const override;
|
||||||
|
|
||||||
|
virtual Category get_category() const override { return CATEGORY_SCALAR; }
|
||||||
|
|
||||||
VisualShaderNodeUIntOp();
|
VisualShaderNodeUIntOp();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1502,6 +1510,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 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_VECTOR; }
|
||||||
|
|
||||||
VisualShaderNodeDotProduct();
|
VisualShaderNodeDotProduct();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1548,6 +1558,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 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_VECTOR; }
|
||||||
|
|
||||||
VisualShaderNodeDeterminant();
|
VisualShaderNodeDeterminant();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1591,6 +1603,14 @@ 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 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 {
|
||||||
|
if (op_type == OP_TYPE_FLOAT || op_type == OP_TYPE_INT || op_type == OP_TYPE_UINT) {
|
||||||
|
return CATEGORY_SCALAR;
|
||||||
|
} else {
|
||||||
|
return CATEGORY_VECTOR;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
VisualShaderNodeClamp();
|
VisualShaderNodeClamp();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1990,8 +2010,6 @@ public:
|
||||||
virtual void set_op_type(OpType p_op_type) override;
|
virtual void set_op_type(OpType p_op_type) 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 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_VECTOR; }
|
|
||||||
|
|
||||||
VisualShaderNodeVectorDecompose();
|
VisualShaderNodeVectorDecompose();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2734,6 +2752,8 @@ public:
|
||||||
virtual bool is_generate_input_var(int p_port) const override;
|
virtual bool is_generate_input_var(int p_port) 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 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_UTILITY; }
|
||||||
|
|
||||||
VisualShaderNodeFresnel();
|
VisualShaderNodeFresnel();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,6 @@ public:
|
||||||
virtual String generate_global_per_node(Shader::Mode p_mode, int p_id) const override;
|
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 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();
|
VisualShaderNodeParticleSphereEmitter();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -94,8 +92,6 @@ public:
|
||||||
virtual String generate_global_per_node(Shader::Mode p_mode, int p_id) const override;
|
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 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();
|
VisualShaderNodeParticleBoxEmitter();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -112,8 +108,6 @@ public:
|
||||||
virtual String generate_global_per_node(Shader::Mode p_mode, int p_id) const override;
|
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 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();
|
VisualShaderNodeParticleRingEmitter();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -166,8 +160,6 @@ public:
|
||||||
HashMap<StringName, String> get_editable_properties_names() const override;
|
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;
|
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();
|
VisualShaderNodeParticleMeshEmitter();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,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 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_TEXTURES; }
|
||||||
|
|
||||||
VisualShaderNodeSDFToScreenUV();
|
VisualShaderNodeSDFToScreenUV();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -69,6 +71,8 @@ public:
|
||||||
virtual bool is_input_port_default(int p_port, Shader::Mode p_mode) const override;
|
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 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_TEXTURES; }
|
||||||
|
|
||||||
VisualShaderNodeScreenUVToSDF();
|
VisualShaderNodeScreenUVToSDF();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -88,6 +92,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 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_TEXTURES; }
|
||||||
|
|
||||||
VisualShaderNodeTextureSDF();
|
VisualShaderNodeTextureSDF();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -107,6 +113,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 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_TEXTURES; }
|
||||||
|
|
||||||
VisualShaderNodeTextureSDFNormal();
|
VisualShaderNodeTextureSDFNormal();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -126,6 +134,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 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_TEXTURES; }
|
||||||
|
|
||||||
VisualShaderNodeSDFRaymarch();
|
VisualShaderNodeSDFRaymarch();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue