You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user