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:
@@ -420,7 +420,8 @@ float SchlickFresnel(float u) {
|
||||
}
|
||||
|
||||
float GTR1(float NdotH, float a) {
|
||||
if (a >= 1.0) return 1.0 / M_PI;
|
||||
if (a >= 1.0)
|
||||
return 1.0 / M_PI;
|
||||
float a2 = a * a;
|
||||
float t = 1.0 + (a2 - 1.0) * NdotH * NdotH;
|
||||
return (a2 - 1.0) / (M_PI * log(a2) * t);
|
||||
|
||||
Reference in New Issue
Block a user