[gtk/wip/baedert/for-master: 3/6] gl renderer: Adjust gaussian blur sigma
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 3/6] gl renderer: Adjust gaussian blur sigma
- Date: Sat, 29 Aug 2020 14:46:36 +0000 (UTC)
commit c1c2205018c738a5e96ee8a8922ebfe711c5ce1b
Author: Timm Bäder <mail baedert org>
Date: Sat Aug 29 11:30:45 2020 +0200
gl renderer: Adjust gaussian blur sigma
To look more like what browsers do.
gsk/resources/glsl/blur.glsl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]