summaryrefslogtreecommitdiff
path: root/src/render/shaders
diff options
context:
space:
mode:
authorPollux <pollux@pollux.codes>2025-01-06 13:30:57 -0600
committerGitHub <noreply@github.com>2025-01-06 19:30:57 +0000
commitb9f110ef8726fcba2b4ee69856027731e73003a5 (patch)
tree26f2fd19e76beee88ecdf64d36c9c5fe511d4796 /src/render/shaders
parent1bf4937b0292dc156e2530185c231608280be27f (diff)
shaders: fix blank windows when using corner rounding (#8969) (#8971)
Diffstat (limited to 'src/render/shaders')
-rw-r--r--src/render/shaders/Textures.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/shaders/Textures.hpp b/src/render/shaders/Textures.hpp
index 49d27b4c..78845322 100644
--- a/src/render/shaders/Textures.hpp
+++ b/src/render/shaders/Textures.hpp
@@ -19,7 +19,7 @@ inline static constexpr auto ROUNDED_SHADER_FUNC = [](const std::string colorVar
const float SMOOTHING_CONSTANT = )#" +
std::format("{:.7f}", SHADER_ROUNDED_SMOOTHING_FACTOR) + R"#(;
- //if (pixCoord.x + pixCoord.y > radius) {
+ if (pixCoord.x + pixCoord.y > radius) {
float dist = pow(pow(pixCoord.x, roundingPower) + pow(pixCoord.y, roundingPower), 1.0/roundingPower);
@@ -30,7 +30,7 @@ inline static constexpr auto ROUNDED_SHADER_FUNC = [](const std::string colorVar
)#" +
colorVarName + R"#( = )#" + colorVarName + R"#( * normalized;
- //}
+ }
)#";
};