Skip to content

Commit

Permalink
Merge pull request #83194 from jsjtxietian/fix-bool-varying-code-gen
Browse files Browse the repository at this point in the history
Fix bool varying's generated code will be modified with flat
  • Loading branch information
akien-mga committed Oct 13, 2023
2 parents 8f98f13 + 0f7a97e commit 111a91a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scene/resources/visual_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2454,9 +2454,6 @@ void VisualShader::_update_shader() const {
global_code += "vec4 ";
break;
case VaryingType::VARYING_TYPE_BOOLEAN:
if (E.value.mode == VaryingMode::VARYING_MODE_VERTEX_TO_FRAG_LIGHT) {
global_code += "flat ";
}
global_code += "bool ";
break;
case VaryingType::VARYING_TYPE_TRANSFORM:
Expand Down

0 comments on commit 111a91a

Please sign in to comment.