Skip to content

Commit

Permalink
Merge pull request #50963 from Chaosus/shader_fix_varying
Browse files Browse the repository at this point in the history
Fix varying usage in custom functions [3.x]
  • Loading branch information
akien-mga authored Jul 28, 2021
2 parents fa9f387 + 8b6d9ab commit ab30437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/visual/shader_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,7 @@ bool ShaderLanguage::_validate_varying_using(ShaderNode::Varying &p_varying, Str
usage.var = &p_varying;
usage.line = tk_line;
unknown_varying_usages.push_back(usage);
return false;
break;
case ShaderNode::Varying::STAGE_VERTEX:
if (current_function == String("fragment") || current_function == String("light")) {
p_varying.stage = ShaderNode::Varying::STAGE_VERTEX_TO_FRAGMENT_LIGHT;
Expand Down

0 comments on commit ab30437

Please sign in to comment.