From 0f7a97eba0b76deb1821c117e760f0c1d4f720f3 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Thu, 12 Oct 2023 19:42:18 +0800 Subject: [PATCH] Fix bool varying's generated code will be modified with flat --- scene/resources/visual_shader.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp index 489b866e705..456bc3efe51 100644 --- a/scene/resources/visual_shader.cpp +++ b/scene/resources/visual_shader.cpp @@ -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: