summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/distortion.fx
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2016-06-19 22:23:02 +0200
committer ImJezze <jezze@gmx.net>2016-06-20 00:03:44 +0200
commit2f06a08ec466b21223abe6de277889f269c45890 (patch)
tree1f1505b7d58623189573e99aa0031c20a05f0332 /hlsl/distortion.fx
parentf056b622bcad7c19a521a9a5a181471ff301f5f2 (diff)
Small shader corrections (nw)
Diffstat (limited to 'hlsl/distortion.fx')
-rw-r--r--hlsl/distortion.fx4
1 files changed, 2 insertions, 2 deletions
diff --git a/hlsl/distortion.fx b/hlsl/distortion.fx
index 1ee1641e646..3b7a9d592e3 100644
--- a/hlsl/distortion.fx
+++ b/hlsl/distortion.fx
@@ -176,9 +176,9 @@ float GetRoundCornerFactor(float2 coord, float2 bounds, float radiusAmount, floa
smoothAmount = min(smoothAmount, radiusAmount);
float range = min(bounds.x, bounds.y);
- float amountMinimum = range > 0.0f ? 1.0f / range : 0.0f;
+ float amountMinimum = 1.0f / range;
float radius = range * max(radiusAmount, amountMinimum);
- float smooth = 1.0f / (range * max(smoothAmount, amountMinimum * 3.0f));
+ float smooth = 1.0f / (range * max(smoothAmount, amountMinimum * 2.0f));
// compute box
float box = roundBox(bounds * (coord * 2.0f), bounds, radius);