Skip to content

Commit

Permalink
Fix float issue on shaders_110
Browse files Browse the repository at this point in the history
  • Loading branch information
matinlotfali committed Jun 18, 2023
1 parent 90c6e74 commit 7bc2c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaders_110/shapecorners.frag
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bool isDrawingOutline() { return outlineColor.a > 0.0 && outlineThickness > 0.0

vec4 shadowCorner(float distance_from_center) {
float percent = -distance_from_center/shadowSize + 1.0;
if (percent < 0)
if (percent < 0.0)
return vec4(0.0, 0.0, 0.0, 0.0);
else
return vec4(shadowColor.rgb, percent);
Expand Down

0 comments on commit 7bc2c2e

Please sign in to comment.