Merge branch 'main' into feature/tv-effect

This commit is contained in:
Simon Schneegans
2021-12-30 13:51:54 +01:00
2 changed files with 13 additions and 4 deletions
+9
View File
@@ -1,5 +1,14 @@
# Changelog of the Burn-My-Windows Extension
## [Burn My Window 5](https://github.com/schneegans/Burn-My-Windows/releases/tag/v5)
**Release Date:** TBD
#### Other Enhancements
* The fire shader now uses a `smoothstep` to make it less blocky.
## [Burn My Window 4](https://github.com/schneegans/Burn-My-Windows/releases/tag/v4)
**Release Date:** 2021-12-25
+4 -4
View File
@@ -111,10 +111,10 @@ var FireShader = GObject.registerClass({Properties: {}, Signals: {}},
// Fade at window borders.
vec2 pos = cogl_tex_coord_in[0].st * vec2(uSizeX, uSizeY);
effectMask *= clamp(pos.x / edgeFadeWidth, 0, 1);
effectMask *= clamp(pos.y / edgeFadeWidth, 0, 1);
effectMask *= clamp((uSizeX - pos.x) / edgeFadeWidth, 0, 1);
effectMask *= clamp((uSizeY - pos.y) / edgeFadeWidth, 0, 1);
effectMask *= smoothstep(0, 1, clamp(pos.x / edgeFadeWidth, 0, 1));
effectMask *= smoothstep(0, 1, clamp(pos.y / edgeFadeWidth, 0, 1));
effectMask *= smoothstep(0, 1, clamp((uSizeX - pos.x) / edgeFadeWidth, 0, 1));
effectMask *= smoothstep(0, 1, clamp((uSizeY - pos.y) / edgeFadeWidth, 0, 1));
return vec2(windowMask, effectMask);
}