Skip to content

Commit

Permalink
Generate global code for VisualShader nodes that connect to VaryingSe…
Browse files Browse the repository at this point in the history
…tters

Updated visual shader code to call generate_global_per_node() for nodes connected to VaryingSetter nodes, even if they don't connect directly to Output.
  • Loading branch information
aaronp64 committed Jan 16, 2025
1 parent 4ce466d commit c4db668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/visual_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2796,7 +2796,7 @@ void VisualShader::_update_shader() const {

if (varying_setters.has(i)) {
for (int &E : varying_setters[i]) {
err = _write_node(Type(i), &global_code, nullptr, nullptr, func_code, default_tex_params, input_connections, output_connections, E, processed, false, classes);
err = _write_node(Type(i), &global_code, &global_code_per_node, nullptr, func_code, default_tex_params, input_connections, output_connections, E, processed, false, classes);
ERR_FAIL_COND(err != OK);
}
}
Expand Down

0 comments on commit c4db668

Please sign in to comment.