fixing your shit.

This commit is contained in:
Felix Dick 2022-09-28 23:33:18 +02:00
parent 168a326609
commit 0549aa193f

View file

@ -36,7 +36,7 @@ inline static constexpr auto ROUNDED_SHADER_FUNC = [](const std::string colorVar
} }
} }
)#"; )#";
}; };
inline const std::string QUADVERTSRC = R"#( inline const std::string QUADVERTSRC = R"#(
@ -67,6 +67,7 @@ uniform int primitiveMultisample;
uniform int ignoreCorners; uniform int ignoreCorners;
void main() { void main() {
vec4 pixColor = v_color; vec4 pixColor = v_color;
if (radius > 0.0) { if (radius > 0.0) {
@ -248,4 +249,5 @@ void main() {
)#" + ROUNDED_SHADER_FUNC("pixColor") + R"#( )#" + ROUNDED_SHADER_FUNC("pixColor") + R"#(
gl_FragColor = pixColor * alpha; gl_FragColor = pixColor * alpha;
})#"; }
)#";