From c4aa0cd92a559e594e123ee013dc5796ce887096 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Mon, 23 May 2022 06:03:25 +0200 Subject: [PATCH] :memo: Fix tutorial --- docs/how-to-create-new-effects.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/how-to-create-new-effects.md b/docs/how-to-create-new-effects.md index 6d0cc39..d92b43a 100644 --- a/docs/how-to-create-new-effects.md +++ b/docs/how-to-create-new-effects.md @@ -169,18 +169,12 @@ var SimpleFade = class { // newly created shader instance. constructor() { this.shaderFactory = new ShaderFactory(this.getNick(), (shader) => { - // We import Clutter in this function as it is not available in the preferences - // process. This creator function of the ShaderFactory is only called within GNOME - // Shell's process. - const Clutter = imports.gi.Clutter; // Store uniform locations of newly created shaders. - shader._uForOpening = shader.get_uniform_location('uForOpening'); - shader._uFadeWidth = shader.get_uniform_location('uFadeWidth'); + shader._uFadeWidth = shader.get_uniform_location('uFadeWidth'); // Write all uniform values at the start of each animation. shader.connect('begin-animation', (shader, settings) => { - shader.set_uniform_float(shader._uForOpening, 1, [forOpening]); shader.set_uniform_float(shader._uFadeWidth, 1, [settings.get_double('simple-fade-width')]); }); });