mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 10:01:15 +00:00
[3.x] Add hints and default values to the uniform nodes in visual shader
This commit is contained in:
parent
ccbfe8563e
commit
5b0fe7880e
10 changed files with 595 additions and 48 deletions
|
|
@ -96,6 +96,10 @@ bool VisualShaderNode::is_code_generated() const {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool VisualShaderNode::is_show_prop_names() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
Vector<VisualShader::DefaultTextureParam> VisualShaderNode::get_default_texture_parameters(VisualShader::Type p_type, int p_id) const {
|
||||
return Vector<VisualShader::DefaultTextureParam>();
|
||||
}
|
||||
|
|
@ -2334,6 +2338,10 @@ void VisualShaderNodeUniform::_bind_methods() {
|
|||
ADD_PROPERTY(PropertyInfo(Variant::STRING, "uniform_name"), "set_uniform_name", "get_uniform_name");
|
||||
}
|
||||
|
||||
bool VisualShaderNodeUniform::is_show_prop_names() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
VisualShaderNodeUniform::VisualShaderNodeUniform() {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue