♻️ Use more consistent key names

This commit is contained in:
Simon Schneegans
2025-02-16 07:01:46 +01:00
parent 293fbf1d0f
commit 2a1e5f2b22
9 changed files with 94 additions and 91 deletions
+8 -4
View File
@@ -5,9 +5,13 @@
// The code below is called whenever the user changes something in the configuration of
// the effect.
effect.setUniform(this.shader, 'uWT', effect.readConfig('AnimationSplit', 1.0));
effect.setUniform(this.shader, 'uWinRot', effect.readConfig('RotateWindow', true) ? 1.0 : 0.0);
effect.setUniform(this.shader, 'uXpos', effect.readConfig('HorizontalSparklePosition', 1.0));
effect.setUniform(this.shader, 'uYpos', effect.readConfig('VerticalSparklePosition', 1.0));
effect.setUniform(this.shader, 'uAnimationSplit',
effect.readConfig('AnimationSplit', 1.0));
effect.setUniform(this.shader, 'uWindowRotation',
effect.readConfig('RotateWindow', true) ? 1.0 : 0.0);
effect.setUniform(this.shader, 'uHorizontalSparklePosition',
effect.readConfig('HorizontalSparklePosition', 1.0));
effect.setUniform(this.shader, 'uVerticalSparklePosition',
effect.readConfig('VerticalSparklePosition', 1.0));
effect.setUniform(this.shader, 'uSparkleRot', effect.readConfig('SparkleRotation', 1.0));
effect.setUniform(this.shader, 'uSparkleSize', effect.readConfig('SparkleSize', 1.0));