From a182f247cb89620f47a16eab68b4e3e70d1e4b1e Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Fri, 10 Jun 2022 07:33:06 +0200 Subject: [PATCH] :wrench: Pass duration to kwin shaders --- kwin/main.js.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/kwin/main.js.in b/kwin/main.js.in index 67e6fb5..1e90177 100755 --- a/kwin/main.js.in +++ b/kwin/main.js.in @@ -106,6 +106,13 @@ class BMW%NICK%Effect { uniform: "forOpening", from: 1.0, to: 1.0 + }, + { + type: Effect.ShaderUniform, + fragmentShader: this.shader, + uniform: "uDuration", + from: this.duration, + to: this.duration } ] }); @@ -140,6 +147,13 @@ class BMW%NICK%Effect { uniform: "forOpening", from: 0.0, to: 0.0 + }, + { + type: Effect.ShaderUniform, + fragmentShader: this.shader, + uniform: "uDuration", + from: this.duration, + to: this.duration } ] });