From 2bd897fe0e73d6f95fab08fc17316f163117eeda Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Wed, 11 May 2022 05:33:37 +0200 Subject: [PATCH] :memo: Update tutorial --- docs/how-to-create-new-effects.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/how-to-create-new-effects.md b/docs/how-to-create-new-effects.md index 6957067..36c6ad6 100644 --- a/docs/how-to-create-new-effects.md +++ b/docs/how-to-create-new-effects.md @@ -234,11 +234,10 @@ if (utils.isInShellProcess()) { const declarations = ` // The code below injects some standard uniforms which will be updated during the // animation. This includes: - // uTexture: Contains the texture of the window. - // uProgress: A value which transitions from 0 to 1 during the entire animation. - // uTime: A steadily increasing value in seconds. - // uSizeX: The horizontal size of uTexture in pixels. - // uSizeY: The vertical size of uTexture in pixels. + // sampler2D uTexture: Contains the texture of the window. + // float uProgress: A value which transitions from 0 to 1 during the entire animation. + // float uTime: A steadily increasing value in seconds. + // vec2 uSize: The size of uTexture in pixels. ${shaderSnippets.standardUniforms()} // The width of the fading effect is loaded from the settings.