You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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 ";
|
global_code += "vec4 ";
|
||||||
break;
|
break;
|
||||||
case VaryingType::VARYING_TYPE_BOOLEAN:
|
case VaryingType::VARYING_TYPE_BOOLEAN:
|
||||||
if (E.value.mode == VaryingMode::VARYING_MODE_VERTEX_TO_FRAG_LIGHT) {
|
|
||||||
global_code += "flat ";
|
|
||||||
}
|
|
||||||
global_code += "bool ";
|
global_code += "bool ";
|
||||||
break;
|
break;
|
||||||
case VaryingType::VARYING_TYPE_TRANSFORM:
|
case VaryingType::VARYING_TYPE_TRANSFORM:
|
||||||
|
|||||||
Reference in New Issue
Block a user