🔧 Pass duration to kwin shaders

This commit is contained in:
Simon Schneegans
2022-06-10 07:33:06 +02:00
parent 46a1729e54
commit a182f247cb
+14
View File
@@ -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
}
]
});