diff options
author | Timm Bäder <mail@baedert.org> | 2020-08-29 11:30:45 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-08-29 16:46:28 +0200 |
commit | c1c2205018c738a5e96ee8a8922ebfe711c5ce1b (patch) | |
tree | 4e83c4934cc1ef56d7b204b8a351ba3da3e96df3 /gsk | |
parent | 7a8d71138f5d081a55ae2b1cae149a4144044128 (diff) | |
download | gtk+-c1c2205018c738a5e96ee8a8922ebfe711c5ce1b.tar.gz |
gl renderer: Adjust gaussian blur sigma
To look more like what browsers do.
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/resources/glsl/blur.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/resources/glsl/blur.glsl b/gsk/resources/glsl/blur.glsl index 055b95cbf7..13bf588b0e 100644 --- a/gsk/resources/glsl/blur.glsl +++ b/gsk/resources/glsl/blur.glsl @@ -18,7 +18,7 @@ void main() { pixel_step = (vec2(1.0) / u_blur_size) * u_blur_dir; pixels_per_side = floor(u_blur_radius * RADIUS_MULTIPLIER / 2.0); - float sigma = u_blur_radius; // *shrug* + float sigma = u_blur_radius / 2.0; // *shrug* initial_gaussian.x = 1.0 / (sqrt(2.0 * PI) * sigma); initial_gaussian.y = exp(-0.5 / (sigma * sigma)); initial_gaussian.z = initial_gaussian.y * initial_gaussian.y; |