Merge pull request #83194 from jsjtxietian/fix-bool-varying-code-gen

Fix bool varying's generated code will be modified with flat
This commit is contained in:
Rémi Verschelde 2023-10-13 11:45:09 +02:00
commit 111a91a09f
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 3 deletions

View File

@ -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: