diff options
author | jsjtxietian <jsjtxietian@outlook.com> | 2023-10-12 19:42:18 +0800 |
---|---|---|
committer | jsjtxietian <jsjtxietian@outlook.com> | 2023-10-12 19:42:18 +0800 |
commit | 0f7a97eba0b76deb1821c117e760f0c1d4f720f3 (patch) | |
tree | c20043a0af7972dab0b6475397798f72024a1a84 /scene/resources/visual_shader.cpp | |
parent | b1371806ad3907c009458ea939bd4b810f9deb21 (diff) | |
download | redot-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.cpp | 3 |
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: |