Skip to content

Commit

Permalink
Merge pull request #92441 from Chaosus/shader_custom_func_overloads
Browse files Browse the repository at this point in the history
Implement custom function overloading in shading language
  • Loading branch information
Repiteo committed Oct 14, 2024
2 parents 03f6902 + 1c86fee commit af77100
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 128 deletions.
4 changes: 2 additions & 2 deletions servers/rendering/shader_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void ShaderCompiler::_dump_function_deps(const SL::ShaderNode *p_node, const Str
}

header += " ";
header += _mkid(fnode->name);
header += _mkid(fnode->rname);
header += "(";

for (int i = 0; i < fnode->arguments.size(); i++) {
Expand Down Expand Up @@ -1190,7 +1190,7 @@ String ShaderCompiler::_dump_node_code(const SL::Node *p_node, int p_level, Gene
} else if (p_default_actions.renames.has(vnode->name)) {
code += p_default_actions.renames[vnode->name];
} else {
code += _mkid(vnode->name);
code += _mkid(vnode->rname);
}
}

Expand Down
Loading

0 comments on commit af77100

Please sign in to comment.