Skip to content

Commit

Permalink
shaders: fix blank windows when using corner rounding (#8969) (#8971)
Browse files Browse the repository at this point in the history
  • Loading branch information
polluxcodes authored Jan 6, 2025
1 parent 1bf4937 commit b9f110e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/shaders/Textures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -30,7 +30,7 @@ inline static constexpr auto ROUNDED_SHADER_FUNC = [](const std::string colorVar
)#" +
colorVarName + R"#( = )#" + colorVarName + R"#( * normalized;
//}
}
)#";
};

Expand Down

0 comments on commit b9f110e

Please sign in to comment.