🎉 Add initial KWin port of the doom effect

This commit is contained in:
Simon Schneegans
2022-08-28 07:30:26 +02:00
parent 70392cd56f
commit df9fe5a04b
4 changed files with 122 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// This part is automatically included in the effect's source during the build process.
// The code below is called whenever the user changes something in the configuration of
// the effect.
// I have not yet found a way to scaling the actor canvas on KWin. So this effect cannot
// look as good as on GNOME.
effect.setUniform(this.shader, 'uActorScale', 1.0);
effect.setUniform(this.shader, 'uHorizontalScale',
effect.readConfig('HorizontalScale', 1.0));
effect.setUniform(this.shader, 'uVerticalScale', effect.readConfig('VerticalScale', 1.0));
effect.setUniform(this.shader, 'uPixelSize', effect.readConfig('PixelSize', 1.0));