Merge pull request #50963 from Chaosus/shader_fix_varying
Fix varying usage in custom functions [3.x]
This commit is contained in:
commit
ab30437529
1 changed files with 1 additions and 1 deletions
|
@ -2839,7 +2839,7 @@ bool ShaderLanguage::_validate_varying_using(ShaderNode::Varying &p_varying, Str
|
||||||
usage.var = &p_varying;
|
usage.var = &p_varying;
|
||||||
usage.line = tk_line;
|
usage.line = tk_line;
|
||||||
unknown_varying_usages.push_back(usage);
|
unknown_varying_usages.push_back(usage);
|
||||||
return false;
|
break;
|
||||||
case ShaderNode::Varying::STAGE_VERTEX:
|
case ShaderNode::Varying::STAGE_VERTEX:
|
||||||
if (current_function == String("fragment") || current_function == String("light")) {
|
if (current_function == String("fragment") || current_function == String("light")) {
|
||||||
p_varying.stage = ShaderNode::Varying::STAGE_VERTEX_TO_FRAGMENT_LIGHT;
|
p_varying.stage = ShaderNode::Varying::STAGE_VERTEX_TO_FRAGMENT_LIGHT;
|
||||||
|
|
Loading…
Reference in a new issue