Skip to content

Commit

Permalink
Make shader compiler only handle non local name as uniform
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtxietian committed Aug 23, 2024
1 parent 62de80d commit 9afac65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/rendering/shader_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ String ShaderCompiler::_dump_node_code(const SL::Node *p_node, int p_level, Gene
if (p_default_actions.renames.has(vnode->name)) {
code = p_default_actions.renames[vnode->name];
} else {
if (shader->uniforms.has(vnode->name)) {
if (!vnode->is_local && shader->uniforms.has(vnode->name)) {
//its a uniform!
const ShaderLanguage::ShaderNode::Uniform &u = shader->uniforms[vnode->name];
if (u.is_texture()) {
Expand Down

0 comments on commit 9afac65

Please sign in to comment.