diff --git a/src/render/shaders/Textures.hpp b/src/render/shaders/Textures.hpp index e571d6626..0928487fa 100644 --- a/src/render/shaders/Textures.hpp +++ b/src/render/shaders/Textures.hpp @@ -120,8 +120,10 @@ void main() { pixColor[2] = pixColor[2] * tint[2]; } + if (radius > 0.0) { )#" + ROUNDED_SHADER_FUNC("pixColor") + R"#( + } gl_FragColor = pixColor * alpha; })#"; @@ -167,8 +169,10 @@ void main() { pixColor[2] = pixColor[2] * tint[2]; } + if (radius > 0.0) { )#" + ROUNDED_SHADER_FUNC("pixColor") + R"#( + } gl_FragColor = pixColor * alpha; })#"; @@ -255,8 +259,10 @@ void main() { pixColor[2] = pixColor[2] * tint[2]; } + if (radius > 0.0) { )#" + ROUNDED_SHADER_FUNC("pixColor") + R"#( + } gl_FragColor = pixColor * alpha; }