summaryrefslogtreecommitdiff
path: root/src/render/shaders
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-12-20 02:18:47 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-12-20 02:18:47 +0000
commit4fd90144d13a6a8d34ac77f9340ce7fd397c3464 (patch)
tree3709696d68ee8731207e3003084bbc297579b01c /src/render/shaders
parent3e2785b9707348e918b61491bee5f69c43be9a66 (diff)
touch up the clang format and format all files
Diffstat (limited to 'src/render/shaders')
-rw-r--r--src/render/shaders/Textures.hpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/render/shaders/Textures.hpp b/src/render/shaders/Textures.hpp
index 053635b2..42ff8063 100644
--- a/src/render/shaders/Textures.hpp
+++ b/src/render/shaders/Textures.hpp
@@ -3,7 +3,7 @@
#include <string>
inline static constexpr auto ROUNDED_SHADER_FUNC = [](const std::string colorVarName) -> std::string {
- return R"#(
+ return R"#(
// branchless baby!
highp vec2 pixCoord = vec2(gl_FragCoord);
@@ -30,7 +30,8 @@ inline static constexpr auto ROUNDED_SHADER_FUNC = [](const std::string colorVar
distances /= 4.0;
- )#" + colorVarName + R"#( = )#" + colorVarName + R"#( * distances;
+ )#" +
+ colorVarName + R"#( = )#" + colorVarName + R"#( * distances;
}
}
@@ -66,7 +67,8 @@ void main() {
vec4 pixColor = v_color;
if (radius > 0.0) {
- )#" + ROUNDED_SHADER_FUNC("pixColor") + R"#(
+ )#" +
+ ROUNDED_SHADER_FUNC("pixColor") + R"#(
}
gl_FragColor = pixColor;
@@ -114,7 +116,8 @@ void main() {
pixColor[2] = pixColor[2] * tint[2];
}
- )#" + ROUNDED_SHADER_FUNC("pixColor") + R"#(
+ )#" +
+ ROUNDED_SHADER_FUNC("pixColor") + R"#(
gl_FragColor = pixColor * alpha;
})#";
@@ -149,7 +152,8 @@ void main() {
pixColor[2] = pixColor[2] * tint[2];
}
- )#" + ROUNDED_SHADER_FUNC("pixColor") + R"#(
+ )#" +
+ ROUNDED_SHADER_FUNC("pixColor") + R"#(
gl_FragColor = pixColor * alpha;
})#";
@@ -234,7 +238,8 @@ void main() {
pixColor[2] = pixColor[2] * tint[2];
}
- )#" + ROUNDED_SHADER_FUNC("pixColor") + R"#(
+ )#" +
+ ROUNDED_SHADER_FUNC("pixColor") + R"#(
gl_FragColor = pixColor * alpha;
}