summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/distortion.fx
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-10-20 20:07:38 +0200
committer ImJezze <jezze@gmx.net>2015-10-20 20:07:38 +0200
commit4610935e796661874bb4ee7ec6536d9423aeb7be (patch)
tree8fc1165b0164ffa889fae6731c24fc6f0659d01c /hlsl/distortion.fx
parentcd7de43b13e33f0d3d8fa3f31e48e2e669c31c1c (diff)
Small Fixes
- fixed position of reflection effect for vector graphics - fixed size of rounded corners - fixed very small black border
Diffstat (limited to 'hlsl/distortion.fx')
-rw-r--r--hlsl/distortion.fx6
1 files changed, 3 insertions, 3 deletions
diff --git a/hlsl/distortion.fx b/hlsl/distortion.fx
index b864d72348f..1524f27757c 100644
--- a/hlsl/distortion.fx
+++ b/hlsl/distortion.fx
@@ -196,9 +196,9 @@ float GetRoundCornerFactor(float2 coord, float radiusAmount, float smoothAmount)
// reduce smooth amount down to radius amount
smoothAmount = min(smoothAmount, radiusAmount);
- float range = min(ScreenDims.x, ScreenDims.y) * 0.5;
- float radius = range * max(radiusAmount, 0.01f);
- float smooth = 1.0 / (range * max(smoothAmount, 0.01f));
+ float range = min(QuadDims.x, QuadDims.y) * 0.5;
+ float radius = range * max(radiusAmount, 0.0025f);
+ float smooth = 1.0 / (range * max(smoothAmount, 0.0025f));
// compute box
float box = roundBox(ScreenDims * (coord * 2.0f), ScreenDims * RatioCorrection, radius);