shaders: Remove redundant clamp of smoothsteps return value. (#3456)

This commit is contained in:
Dickby
2023-09-30 14:12:48 +02:00
committed by GitHub
parent 6a4643842d
commit 772c7d1d3c
2 changed files with 5 additions and 5 deletions

View File

@@ -71,11 +71,11 @@ void main() {
if (dist < radius - h) {
// lower
float normalized = clamp(smoothstep(0.0, 1.0, dist - radius + thick + 0.5), 0.0, 1.0);
float normalized = smoothstep(0.0, 1.0, dist - radius + thick + 0.5);
additionalAlpha *= normalized;
} else {
// higher
float normalized = 1.0 - clamp(smoothstep(0.0, 1.0, dist - radius + 0.5), 0.0, 1.0);
float normalized = 1.0 - smoothstep(0.0, 1.0, dist - radius + 0.5);
additionalAlpha *= normalized;
}