You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
This commit is contained in:
@@ -184,22 +184,38 @@ void main() {
|
||||
int index = x + y * 4;
|
||||
float limit = 0.0;
|
||||
if (x < 8) {
|
||||
if (index == 0) limit = 0.0625;
|
||||
if (index == 1) limit = 0.5625;
|
||||
if (index == 2) limit = 0.1875;
|
||||
if (index == 3) limit = 0.6875;
|
||||
if (index == 4) limit = 0.8125;
|
||||
if (index == 5) limit = 0.3125;
|
||||
if (index == 6) limit = 0.9375;
|
||||
if (index == 7) limit = 0.4375;
|
||||
if (index == 8) limit = 0.25;
|
||||
if (index == 9) limit = 0.75;
|
||||
if (index == 10) limit = 0.125;
|
||||
if (index == 11) limit = 0.625;
|
||||
if (index == 12) limit = 1.0;
|
||||
if (index == 13) limit = 0.5;
|
||||
if (index == 14) limit = 0.875;
|
||||
if (index == 15) limit = 0.375;
|
||||
if (index == 0)
|
||||
limit = 0.0625;
|
||||
if (index == 1)
|
||||
limit = 0.5625;
|
||||
if (index == 2)
|
||||
limit = 0.1875;
|
||||
if (index == 3)
|
||||
limit = 0.6875;
|
||||
if (index == 4)
|
||||
limit = 0.8125;
|
||||
if (index == 5)
|
||||
limit = 0.3125;
|
||||
if (index == 6)
|
||||
limit = 0.9375;
|
||||
if (index == 7)
|
||||
limit = 0.4375;
|
||||
if (index == 8)
|
||||
limit = 0.25;
|
||||
if (index == 9)
|
||||
limit = 0.75;
|
||||
if (index == 10)
|
||||
limit = 0.125;
|
||||
if (index == 11)
|
||||
limit = 0.625;
|
||||
if (index == 12)
|
||||
limit = 1.0;
|
||||
if (index == 13)
|
||||
limit = 0.5;
|
||||
if (index == 14)
|
||||
limit = 0.875;
|
||||
if (index == 15)
|
||||
limit = 0.375;
|
||||
}
|
||||
if (frag_color.a < limit) {
|
||||
discard;
|
||||
|
||||
Reference in New Issue
Block a user