summaryrefslogtreecommitdiffstats
path: root/scene/resources/visual_shader.cpp
diff options
context:
space:
mode:
authorjsjtxietian <jsjtxietian@outlook.com>2023-10-12 19:42:18 +0800
committerjsjtxietian <jsjtxietian@outlook.com>2023-10-12 19:42:18 +0800
commit0f7a97eba0b76deb1821c117e760f0c1d4f720f3 (patch)
treec20043a0af7972dab0b6475397798f72024a1a84 /scene/resources/visual_shader.cpp
parentb1371806ad3907c009458ea939bd4b810f9deb21 (diff)
downloadredot-engine-0f7a97eba0b76deb1821c117e760f0c1d4f720f3.tar.gz
Fix bool varying's generated code will be modified with flat
Diffstat (limited to 'scene/resources/visual_shader.cpp')
-rw-r--r--scene/resources/visual_shader.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/resources/visual_shader.cpp b/scene/resources/visual_shader.cpp
index 489b866e70..456bc3efe5 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: