diff --git a/samples/ComputeSharp.BokehBlur/Program.cs b/samples/ComputeSharp.BokehBlur/Program.cs index 05ae8c0b..8b602848 100644 --- a/samples/ComputeSharp.BokehBlur/Program.cs +++ b/samples/ComputeSharp.BokehBlur/Program.cs @@ -19,7 +19,7 @@ namespace ComputeSharp.BokehBlur /// /// The radius of the bokeh blur effect to apply /// - private const int Radius = 32; + private const int Radius = 24; static void Main() { @@ -85,9 +85,9 @@ namespace ComputeSharp.BokehBlur int jx = j + x; if (iy < 0) iy = -iy; - else if (iy > height) iy -= height; + else if (iy > height) iy = 2 * height - iy; if (jx < 0) jx = -jx; - else if (jx > width) jx -= width; + else if (jx > width) jx = 2 * width - jx; int ki = Radius - y; int kj = Radius - x;