diff options
author | 2015-10-09 18:49:39 +0200 | |
---|---|---|
committer | 2015-10-09 18:49:39 +0200 | |
commit | 81c15decf84ed406812e1078191d1aa553abbc98 (patch) | |
tree | a8fc263d124d892e15f0e23d0148d1bee17bb646 /hlsl | |
parent | 5addcdd2da21daab21b1f0332114f8f5a595cd08 (diff) |
Smooth Borders
- enabled smooth border effect and added option, its amount is limited
by the amount of rounded corners
- added raster.ini to parse_standard_inis()
- merged vector and raster bloom options, use vector.ini or raster.ini
to distinguish
Diffstat (limited to 'hlsl')
-rw-r--r-- | hlsl/distortion.fx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hlsl/distortion.fx b/hlsl/distortion.fx index 61eda38defa..709628bcff9 100644 --- a/hlsl/distortion.fx +++ b/hlsl/distortion.fx @@ -206,8 +206,8 @@ float GetRoundCornerFactor(float2 coord, float radiusAmount, float smoothAmount) float box = roundBox(ScreenDims * RoundCornerCoord, ScreenDims * RatioCorrection, radius); // apply smooth - // box *= smooth; - // box += 1.0f - pow(smooth * 0.5f, 0.5f); + box *= smooth; + box += 1.0f - pow(smooth * 0.5f, 0.5f); float border = smoothstep(1.0f, 0.0f, box); @@ -296,7 +296,7 @@ float4 ps_main(PS_INPUT Input) : COLOR // Round Corners Simulation float2 RoundCornerCoord = BaseCoordCentered; - float roundCornerFactor = GetRoundCornerFactor(RoundCornerCoord, RoundCornerAmount, 0); + float roundCornerFactor = GetRoundCornerFactor(RoundCornerCoord, RoundCornerAmount, SmoothBorderAmount); BaseColor.rgb *= roundCornerFactor; // // test code |