🔧 Set duration uniforms

This commit is contained in:
Simon Schneegans
2022-06-10 17:09:22 +02:00
parent 611ba14230
commit fabe1999ad
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
// 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, 'u3DNoise',
effect.readConfig('3DNoise', true) ? 1.0 : 0.0);
effect.setUniform(this.shader, 'uScale', effect.readConfig('Scale', 1.0));