From fe71f92dd24270ae7c5621166b096c665ca0e4f5 Mon Sep 17 00:00:00 2001 From: ImJezze Date: Sun, 24 May 2015 17:46:34 +0200 Subject: [PATCH] Quick fix - something was messed up on the last commit --- hlsl/post.fx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hlsl/post.fx b/hlsl/post.fx index 8b4c9d05be2..54bc0b6d6bb 100644 --- a/hlsl/post.fx +++ b/hlsl/post.fx @@ -218,16 +218,19 @@ float GetRoundCornerFactor(float2 coord, float amount) float2 SourceTexelDims = 1.0f / SourceDims; // base on the default ratio of 4:3 + float2 RoundCoordScale = (SourceDims / SourceArea / SourceRatio) * ScreenRatio; float2 RoundCoord = coord; // hint: alignment correction RoundCoord -= SourceTexelDims * SourceArea; RoundCoord *= SourceTexelDims * SourceArea + 1.0f; // hint: roundness correction + RoundCoord *= RoundCoordScale; float radius = amount * 50.0f; // compute box (base on the default ratio of 4:3) + float box = RoundBox(RoundCoord.xy, (RoundCoordScale * 0.5f), radius); // // apply blur // float blurAmount = 1.0f / max(1.0f, amount * 25.0f);