🔧 Tweak kwin config GUI

This commit is contained in:
Simon Schneegans
2022-06-10 14:38:34 +02:00
parent d4165b4b62
commit 2bd67c0d37
5 changed files with 94 additions and 69 deletions
@@ -2,9 +2,8 @@
// The code below is called whenever the user changes something in the configuration of
// the effect.
effect.setUniform(this.shader, 'uDuration', this.duration * 0.001);
effect.setUniform(this.shader, 'uAdditiveBlending',
effect.readConfig('AdditiveBlending', true));
effect.readConfig('AdditiveBlending', true) ? 1.0 : 0.0);
effect.setUniform(this.shader, 'uScale', effect.readConfig('Scale', 1.0));
effect.setUniform(this.shader, 'uLineWidth', effect.readConfig('LineWidth', 1.0));
effect.setUniform(this.shader, 'uGlowColor', effect.readConfig('GlowColor', 'white'));